其实很简单,以前的模型,内容的width是单独计算的,所以会出现盒子width<2*padding+2*border+content;现在的属性是通过width-2*padding-2*border来计算自然不会出现撑破的情况了
2016-04-01
background-position:120px 0 第一个值表示x轴上的移动距离,第二个值表示y轴上的移动距离
2016-03-31
Chrome下,中间部分也会被拉伸,webkit浏览器对于round属性和repeat属性似乎没有区分,显示效果是一样的。
2016-03-31
background:url(http://static.mukewang.com/static/img/logo_index.png) no-repeat top left/225px 80px,
url(http://static.mukewang.com/static/img/logo_index.png) no-repeat bottom right/150px 55px;
}
url(http://static.mukewang.com/static/img/logo_index.png) no-repeat bottom right/150px 55px;
}
2016-03-31