.xxx{height: 100px;width: 100px;background: red;}.xx{ background: black; padding: 10px; /*position: fixed;*/ left: 100px;}
查看更多关于position:fixed对元素影响的疑问?_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did113786
position:fixed对元素影响的疑问?_html/css_WEB-ITnose
代码如下,当给xx加上position:fixed,为什么xx在样式上从占一整行,到只包围了xxx。
阅读:32次