用table+div做的一个首页中关于table中两个图片的td之间留有空白的问题
时间:2011-07-04
来源:互联网
在做一个首页的时候用table定框架,然后把图片切片插了进去,发现图片链接处会有一小行空白的线,不知该怎么办了。
求教哪些地方用的不对了。。。。。
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>
<!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 runat="server">
<title>公司首页</title>
<style type="text/css">
.style1
{
width: 100%;
float:left;
margin:0px 0px 0px 0px;
height: 121px;
}
.style3
{
height: 112px;
margin:0px 0px 0px 0px;
}
.style4
{
width: 456px;
margin:0px 0px 0px 0px;
}
.style5
{
width: 456px;
margin: 0px 0px 0px 0px;
height: 0px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="top" class="style1">
<div id="top1" class="style1">
<table id="tabletop1" cellpadding="0" cellspacing="0 " class="style1">
<tr>
<td class="style3" >
<img alt="" src="images-index/sy_01_01.jpg"
style="width: 474px; height: 113px" /></td>
<td class="style3">
<img alt="" src="images-index/sy_01_02.jpg"
style="width: 395px; height: 113px" /></td>
<td class="style3">
<img alt="" src="images-index/sy_01_03_sy.jpg"
style="width: 68px; height: 113px" /></td>
<td class="style3">
<img alt="" src="images-index/sy_01_04_cpzs.jpg"
style="width: 97px; height: 113px" /></td>
<td class="style3">
<img alt="" src="images-index/sy_01_05_lxwm.jpg"
style="width: 97px; height: 113px" /></td>
<td class="style3">
<img alt="" src="images-index/sy_01_06.jpg"
style="width: 69px; height: 113px" /></td>
</tr>
</table>
</div>
<div id="top2" class="style1">
<table width="0" height="0" border="0" align="left" cellpadding="0" cellspacing="0" class="style1" border="0">
<tr>
<td align="left" valign="top" class="style4">
<img alt="" src="images-index/sy_02_07_sy.jpg"
style="width: 474px; height: 62px; vertical-align: top;" /></td>
<td rowspan="6" align="left" valign="top">
<img alt="" src="images-index/sy_02_08.jpg"
style="width: 302px; height: 316px; vertical-align: top;" /></td>
<td rowspan="6" align="left" valign="top">
<div >
<table class="style1">
<tr>
<td colspan="2" align="left" valign="top">
<img alt="" src="images-index/sy_02_09.jpg"
style="width: 320px; height: 31px" /></td>
</tr>
<tr>
<td align="left" valign="top">
<img alt="" src="images-index/sy_02_11_xwzx.jpg"
style="width: 93px; height: 31px" /></td>
<td align="left" valign="top">
<img alt="" src="images-index/sy_02_12.jpg"
style="width: 227px; height: 31px" /></td>
</tr>
<tr>
<td colspan="2">
<img alt="" src="images-index/sy_02_14.jpg"
style="width: 320px; height: 160px" /></td>
</tr>
<tr>
<td colspan="2" align="left" valign="top">
<img alt="" src="images-index/sy_02_18_ckgd.jpg"
style="width: 320px; height: 94px" /></td>
</tr>
</table>
</div> </td>
<td rowspan="6">
<img alt="" src="images-index/sy_02_10.jpg"
style="width: 104px; height: 316px" /></td>
</tr>
<tr>
<td align="left" valign="top" class="style5">
<img alt="" src="images-index/sy_02_13_gxjj.jpg"
style="width: 474px; height: 49px; margin-top: 0px;" /></td>
</tr>
<tr>
<td align="left" valign="top" class="style4">
<img alt="" src="images-index/sy_02_15_xwzx.jpg"
style="width: 474px; height: 51px" /></td>
</tr>
<tr>
<td class="style4">
<img alt="" src="images-index/sy_02_16_cpsb.jpg"
style="width: 474px; height: 50px" /></td>
</tr>
<tr>
<td class="style4"><img alt="" src="images-index/sy_02_17_rlzy.jpg"
style="width: 474px; height: 51px" /></td>
</tr>
<tr>
<td align="left" valign="top" class="style4">
<img alt="" src="images-index/sy_02_19_lxwm.jpg"
style="width: 474px; height: 53px" /></td>
</tr>
</table>
</div>
</div>
</div>
</form>
</body>
</html>
求教哪些地方用的不对了。。。。。
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>
<!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 runat="server">
<title>公司首页</title>
<style type="text/css">
.style1
{
width: 100%;
float:left;
margin:0px 0px 0px 0px;
height: 121px;
}
.style3
{
height: 112px;
margin:0px 0px 0px 0px;
}
.style4
{
width: 456px;
margin:0px 0px 0px 0px;
}
.style5
{
width: 456px;
margin: 0px 0px 0px 0px;
height: 0px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="top" class="style1">
<div id="top1" class="style1">
<table id="tabletop1" cellpadding="0" cellspacing="0 " class="style1">
<tr>
<td class="style3" >
<img alt="" src="images-index/sy_01_01.jpg"
style="width: 474px; height: 113px" /></td>
<td class="style3">
<img alt="" src="images-index/sy_01_02.jpg"
style="width: 395px; height: 113px" /></td>
<td class="style3">
<img alt="" src="images-index/sy_01_03_sy.jpg"
style="width: 68px; height: 113px" /></td>
<td class="style3">
<img alt="" src="images-index/sy_01_04_cpzs.jpg"
style="width: 97px; height: 113px" /></td>
<td class="style3">
<img alt="" src="images-index/sy_01_05_lxwm.jpg"
style="width: 97px; height: 113px" /></td>
<td class="style3">
<img alt="" src="images-index/sy_01_06.jpg"
style="width: 69px; height: 113px" /></td>
</tr>
</table>
</div>
<div id="top2" class="style1">
<table width="0" height="0" border="0" align="left" cellpadding="0" cellspacing="0" class="style1" border="0">
<tr>
<td align="left" valign="top" class="style4">
<img alt="" src="images-index/sy_02_07_sy.jpg"
style="width: 474px; height: 62px; vertical-align: top;" /></td>
<td rowspan="6" align="left" valign="top">
<img alt="" src="images-index/sy_02_08.jpg"
style="width: 302px; height: 316px; vertical-align: top;" /></td>
<td rowspan="6" align="left" valign="top">
<div >
<table class="style1">
<tr>
<td colspan="2" align="left" valign="top">
<img alt="" src="images-index/sy_02_09.jpg"
style="width: 320px; height: 31px" /></td>
</tr>
<tr>
<td align="left" valign="top">
<img alt="" src="images-index/sy_02_11_xwzx.jpg"
style="width: 93px; height: 31px" /></td>
<td align="left" valign="top">
<img alt="" src="images-index/sy_02_12.jpg"
style="width: 227px; height: 31px" /></td>
</tr>
<tr>
<td colspan="2">
<img alt="" src="images-index/sy_02_14.jpg"
style="width: 320px; height: 160px" /></td>
</tr>
<tr>
<td colspan="2" align="left" valign="top">
<img alt="" src="images-index/sy_02_18_ckgd.jpg"
style="width: 320px; height: 94px" /></td>
</tr>
</table>
</div> </td>
<td rowspan="6">
<img alt="" src="images-index/sy_02_10.jpg"
style="width: 104px; height: 316px" /></td>
</tr>
<tr>
<td align="left" valign="top" class="style5">
<img alt="" src="images-index/sy_02_13_gxjj.jpg"
style="width: 474px; height: 49px; margin-top: 0px;" /></td>
</tr>
<tr>
<td align="left" valign="top" class="style4">
<img alt="" src="images-index/sy_02_15_xwzx.jpg"
style="width: 474px; height: 51px" /></td>
</tr>
<tr>
<td class="style4">
<img alt="" src="images-index/sy_02_16_cpsb.jpg"
style="width: 474px; height: 50px" /></td>
</tr>
<tr>
<td class="style4"><img alt="" src="images-index/sy_02_17_rlzy.jpg"
style="width: 474px; height: 51px" /></td>
</tr>
<tr>
<td align="left" valign="top" class="style4">
<img alt="" src="images-index/sy_02_19_lxwm.jpg"
style="width: 474px; height: 53px" /></td>
</tr>
</table>
</div>
</div>
</div>
</form>
</body>
</html>
作者: biokranz 发布时间: 2011-07-04
是td的线??
作者: xuexiaodong2009 发布时间: 2011-07-04
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28