img{display:block;}
img{vertical-align:top;}
/*除了top值,还可以设置为text-top | middle | bottom | text-bottom等 */
.imgwrap{font-size:0; line-height:0;}
/* .imgwrap为img的父元素*/
#test{height:25px;line-height:25px;}
/*只需设置文本的行高等于容器的高度即可*/
#test{cursor:pointer;}
#test{ position:absolute; top:50%; left:50%; width:200px; height:200px; margin:-100px 0 0 -100px; }
#test{ _display:inline; }
/*设置该元素的display属性为inline即可。*/
#test{overflow:hidden; height:1px; font-size:0; line-height:0;}
#test{min-height:100px; _height:100px;}
/*注意#test不能设置overflow的值为hidden,否则模拟min-height效果将失效*/
li{vertical-align:top;}
/*除了top值,还可以设置为text-top | middle | bottom | text-bottom等*/
解决方案:给li内部的内联元素再加上zoom:1
解决方案:为父元素设置相对定位position:relative;
.test{ zoom:1; overflow:hidden; width:500px; }
.box1{ float:left; width:100px; }
.box2{ float:right; width:400px; }
<div class="test">
<div class="box1"></div>
<!-- 注释 -->
<div class="box2">内容</div>
</div>
word-break:break-all; /*自动换行*/
原文:https://www.cnblogs.com/lsm-boke/p/14730570.html