
- 解决li与图片产生的空白方法
- 编辑:helly 日期:2010-6-28 浏览:
以下是引用片段:
<!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 {
border:1px solid red;
background:orange;
}
img {
width:276px;
height:110px;
}
/*]]>*/
</style>
</head>
<body>
<div>
<img src="http://www.google.com/intl/en_ALL/images/logo.gif" alt="google" />
</div>
</body>
</html>解决方法:
以下是引用片段:
解决这个BUG的方法也有很多,可以是改变html的排版,或者定义img 为display:block
或者定义vertical-align属性值为vertical-align:top | bottom |middle |text-bottom
还可以设置父容器的字体大小为零,font-size:0- 相关信息
- ·修改没数据库的ewebeditor的上传路径
- ·fckeditor与ewebeditor的比较
- ·IBM笔记本屏幕出现竖线
- ·行业网站、门户网站与普通网站的区别
- ·php判断浏览器的类型代码
- ·ASP删除文件FSO权限问题
- ·js中alert中文乱码问题的一种解决方法
- ·IIS-Rewrite网站静态重写的用法





我们是谁 

