display:inline-block的应用及bug
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>display:inline-block的应用及bug</title>
<style type="text/css">
<!--
* {
font:12px 宋体;
}
.ul_table {
width:936px;
border:#B0B9D1 solid 1px;
padding:0;
}
.ul_table ul {
border:#B0B9D1 solid 1px;
list-style-type:none;
margin:0;
padding:0;
word-spacing:-1em;
}
.ul_table ul li {
line-height:24px;
padding:5px;
vertical-align:middle;
display:inline-block;
*display:inline;
*zoom:1;
word-spacing:0;
}
.one {
width:200px;
text-align:center;
}
.two {
width:500px;
word-wrap:break-word;
overflow: hidden;
}
.three {
width:200px;
text-align:center;
}
.four {
width:712px;
word-wrap:break-word;
overflow: hidden;
}
-->
</style>
</head>
<body>
<div class="ul_table">
<ul>
<li class="one">编号</li>
<li class="two">内容</li>
<li class="three">日期</li>
</ul>
<ul>
<li class="one">001</li>
<li class="two">内容one\two\three内容one\two\three内容one\two\three内容one\two\three内容one\two\three内容one\two\three内容one\two\three内容one\two\three内容one\two\three内容one\two\three</li>
<li class="three">2012-12-3 14:02:09</li>
</ul>
<ul>
<li class="one">001</li>
<li class="four">内容one\two\three内容one\two\three内容one\two\three内容one\two\three内容one\two\three内容one\two\three内容one\two\three内容one\two\three内容one\two\three内容one\two\three</li>
</ul>
</div>
</body>
</html>
红色:ie6/ie7下不能分栏显示
http://www.itlogger.com/program/1824.html
蓝色:去除inline-block元素间间距
http://blog.sina.com.cn/s/blog_42cdca7d01013jkw.html
阅读:
转载于:https://blog.51cto.com/332374363/1085446