Document *{ margin:0; padding:0; } .parent{ background: red; position: absolute; left:60px; width: 300px; height: 300px; } .childRight{ background: blue; width: 240px; position: relative; right:60px; } .child-Right{ background: yellow; width: 240px; position: relative; right:-60px; } .childLeft{ background: blue; width: 240px; position: relative; left:60px; } .child-Left{ background: yellow; width: 240px; position: relative; left:-60px; }parent
childRight
查看更多关于position中的困惑,帮忙解决一下_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did114857
position中的困惑,帮忙解决一下_html/css_WEB-ITnose
阅读:31次