position:fixed或absolute时百分比参考屏幕宽度
时间:
2016-02-08 07:13:30
阅读:
316
评论:
收藏:
0
[点我收藏+]
width:x%用百分比设定元素的宽度,一般情况是指参考父元素的宽度。
但是当position是fixed或absolute时,百分比是参考屏幕的宽度。left:x%等位置属性的百分比也是参考屏幕的宽度。position:fixed或absolute时百分比参考屏幕宽度
原文:http://www.jb51.net/css/138148.html