码迷,mamicode.com
首页 > 其他好文 > 详细

为什么无法定义1px左右高度的容器

时间:2014-06-06 15:42:45      阅读:251      评论:0      收藏:0      [点我收藏+]

标签:c   style   class   blog   code   java   

bubuko.com,布布扣
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh">
<head profile="http://www.w3.org/2000/08/w3c-synd/#">
<meta http-equiv="content-language" content="zh-cn" />
<meta http-equiv="content-type" content="text/html;charset=gb2312" />
<title>blueidea</title>
<style type="text/css">
/*<![CDATA[*/
div {
background:red;
}
/*]]>*/
</style>
</head>
<body>
<div> </div>
</body>
</html>
bubuko.com,布布扣

IE6下这个问题是因为默认的行高造成的,解决的方法也有很多,例如:overflow:hidden | zoom:0.08 | line-height:1px

为什么无法定义1px左右高度的容器,布布扣,bubuko.com

为什么无法定义1px左右高度的容器

标签:c   style   class   blog   code   java   

原文地址:http://www.cnblogs.com/aobingyan/p/3766494.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!