CSS 中的 calc()

一个球 at 
记得刚毕业的时候找工作面试前端,面试官问了我这样一个问题: 我现在需要一个搜索框,左边放 input,右边放搜索按钮,搜索框固定 120px,请你写一下布局。 当时我的内心:”太简单了!“。 于是我劈里啪啦敲了一堆: search .demo_wrap{width:600px;margin:0 auto;} .demo_wrap input{width:480px;height:40px;} .demo_wrap button{width:120px;border:none;height:40px;} 一个简单的搜索框就出来了,像这样: search ……