Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 表行之间的行_Html - Fatal编程技术网

Html 表行之间的行

Html 表行之间的行,html,Html,这是我的密码: <html> <head> <title>PageTitle!</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheigh

这是我的密码:

<html>
<head>
<title>PageTitle!</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table id="Table_01" width="590" height="531" border="0" cellpadding="0" cellspacing="0">
    <tr>    <td>
            <a href="http://mypage.com" border="0"><img src="top.jpg" width="590" height="90" alt="" border="0"></a></td>
    </tr>
    <tr>
        <td>
            <a href="http://mypage.com" border="0"><img src="content.jpg" width="590" height="441" alt="" border="0"></a></td>
    </tr>
</table>
</body>
</html>

页面标题!
问题是:

抱歉,我必须删除此图片


为什么表中的
之间有换行符?我正在寻找不是CSS的解决方案,这是一个简单的邮件。它的问题只在gmail中出现。当我下载到sparrow或移动设备时,空行消失。

您需要定义doctype

将图像上的CSS设置为:

img {vertical-align:middle;}​
你也可以把它们放在左边,但这似乎没有必要


请参见此。然后删除CSS,间隙重新出现。

自我提示:检查眼睛。你真的应该停止使用内嵌CSS。您是否尝试过边界折叠:折叠在表格中?现在编辑,我知道你想做什么了:不要使用表格来做布局。我必须-这是一个简单的邮件,所以必须有没有CSST的纯HTML。这个问题发生在我身上,我花了很多时间才解决这个问题。我不得不尝试几种不同的doctype,直到成功。