为什么无法定义1px左右高度的容器
2015-07-27 11:38
246 查看
<!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>
复制代码
IE6下这个问题的原因为默认的行高造成的,解决的方法有很多,例如:overflow:hidden
| zoom:0.08 | line-height:1px
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>
复制代码
IE6下这个问题的原因为默认的行高造成的,解决的方法有很多,例如:overflow:hidden
| zoom:0.08 | line-height:1px
相关文章推荐
- dp之背包总结篇
- 七,可视化的客户端管理工具MongoVUE
- Android 绘图 cache setDrawingCacheEnabled(boolean flag)
- dp之背包总结篇
- 【经验交流】我为什么要帮你?
- Redis学习指南
- 遍历目录下的所有文件
- HDU 4800 Josephina and RPG(动态规划)
- Matlab 符号运算的因式分解、展开与合并、简化
- Ubuntu14.04 搭建FTP
- 开始刷leetcode day78:Lowest Common Ancestor of a Binary Tree
- js 本地预览图片和得到图片实际大小
- 使用Qtip2来开发功能强大的删除和信息提示功能
- 正则表达式——学习入门
- ListView的简单实用
- 括号配对问题
- ACboy needs your help again!(简单栈)
- 判断一个数字中是否包含两个相同的字串
- git命令
- JAVA学习课第五十三届 — IO流程(七)File打靶 & Properties设置