css3中 百分比宽度减去固定宽度的写法 div{ /*实现了宽度为父容器宽度减去固定的300像素*/ -webkit-calc(100% - 300px); -moz-calc(100% - 300px); calc(100% - 300px); }