标签:距离 square 大小写 cells city list char 的区别 lock
#main {position:relative;} #content {margin-left:25%;margin-right:20%;} #subplot {width:25%;position:absolute;left:0;top:0;} #serve {width:20%;position:absolute;right:0;top:0;}
#main {overflow:hidden;} #content {float:left;width:55%;} #subplot {width:20%;float:left;} #serve {width:25%;float:right;} #content,#subplot,#serve {padding-bottom:9999px;margin-bottom:-9999px;}
#content {float:left;width:55%;margin-left:20%;} #subplot {width:20%;margin-left:-75%;float:left;}
<!--[if IE 6]> <h1>仅IE6可识别</h1> <![endif]-->
p{ color:#c30; /* For Firefox */ [;color:#ddd;]; /* For webkit(Chrome and Safari) */ color:#090\0; /* For Opera */ color:#00f\9; /* For IE8+ */ *color:#f00; /* For IE7 */ _color:#ff0; /* For IE6 */ }
<style type="text/css"> li { list-style-position:inside;//设为outside zoom:1; } li a{ display:inline-block;//或者设为inline-block } </style>
<!doctype html> <html> <meta charset="utf-8"> <head> <title>浮动被流动包含问题</title> <style type="text/css"> #wrap { background:#ffccff; border:solid 1px red; } #box { float:left; width:400px; height:200px; } .clear { clear:both; } </style> </head> <body> <div id="wrap"> <div id="box"> <h3>栏目标题</h3> <p>正文信息</p> </div> <div class="clear"></div> </div> </body> </html>
#wrap { background:#ffccff; padding:1px;//加上padding:1px; }
标签:距离 square 大小写 cells city list char 的区别 lock
原文地址:https://www.cnblogs.com/agasha/p/9975965.html