杜兰特四代多少钱:网页页面出现缝隙怎么办啊!

来源:百度文库 编辑:神马品牌网 时间:2024/05/06 00:20:49
高手们请帮帮忙。

如果是网页和浏览器的边框出现缝隙,把下列代码加入<head>……</head>标签中:

<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>

如果是网页中的表格出现缝隙,试试将每个<table>标记加上如下属性:

<table border="0" cellspacing="0" cellpadding="0">

此外删除不必要的空格和换行,也有可能是隐藏的<input>、透明或1象素的图像、隐藏的其他元素引起。

最后试着给所有<table>加上样式表,定义规范的字体大小和行距等等。

可能是你的table 和tr td里面的数值不一致