<td> 标签未显示在 html 中
<td> tag not showing up in html
为什么第二个 < td>
没有显示?
我已经在 google chrome 上尝试了 inspect element
的东西,但没有拿起它,它只看到第一个。
告诉我我是否足够具体。
<html>
<head>
<title>v1.0.0</title>
</head>
<body background="images/html/background001.png" bgcolor="6699ff">
<center>
<table>
<tr>
<td bgcolor="#6699ff" width="660" height="500">
<iframe width="660" height="500" src="index.html" frameborder="0">browser said no<iframe>
</td>
<tr/>
<tr>
<td id="controls" bgcolor="#ffffff" width="100" height="500">
<img src="images/html/controls.png">
</td>
</tr>
</table>
</center>
</body>
</html>
关闭您的 iframe
标签。
<iframe width="660" height="500" src="index.html" frameborder="0">browser said no</iframe>
下面的代码将解决您的问题(关闭 td,关闭 iframe,正如其他人所提到的)。我添加这个答案只是为了给你一些关于如何以不同方式做事的想法。尽快进入 CSS 是明智的。您目前使用的方法这些天已经过时了。
搜索 HTML5、CSS3 等。尽量避免使用表格进行布局。尽量避免同时使用 iframe。
一个起点是 http://learnlayout.com/
祝学习顺利!
<html>
<head>
<title>v1.0.0</title>
<style type="text/css">
body {
background: #6699ff url(images/html/background001.png);
}
td.iframeContainer {
background-color: #6699ff;
width: 660px;
height: 500px;
}
iframe {
width: 660px;
height: 500px;
border: 0;
}
td#controls {
background-color: #fff;
width: 100px;
height: 500px;
}
</style>
</head>
<body>
<center>
<table>
<tr>
<td class="iframeContainer">
<iframe src="index.html">browser said no</iframe>
</td>
</tr>
<tr>
<td id="controls">
<img src="images/html/controls.png">
</td>
</tr>
</table>
</center>
</body>
</html>
编辑: 我快速搜索了一些可以帮助您开始正确的 Web 开发的内容。这似乎很有希望:http://channel9.msdn.com/Series/HTML5-CSS3-Fundamentals-Development-for-Absolute-Beginners
ps。不要试图以任何方式听起来有辱人格。例如,旧的 skool html 布局实际上在 html 电子邮件中仍然占有一席之地,但考虑到那里有一个 iframe,我猜你没有在处理电子邮件模板..
为什么第二个 < td>
没有显示?
我已经在 google chrome 上尝试了 inspect element
的东西,但没有拿起它,它只看到第一个。
告诉我我是否足够具体。
<html>
<head>
<title>v1.0.0</title>
</head>
<body background="images/html/background001.png" bgcolor="6699ff">
<center>
<table>
<tr>
<td bgcolor="#6699ff" width="660" height="500">
<iframe width="660" height="500" src="index.html" frameborder="0">browser said no<iframe>
</td>
<tr/>
<tr>
<td id="controls" bgcolor="#ffffff" width="100" height="500">
<img src="images/html/controls.png">
</td>
</tr>
</table>
</center>
</body>
</html>
关闭您的 iframe
标签。
<iframe width="660" height="500" src="index.html" frameborder="0">browser said no</iframe>
下面的代码将解决您的问题(关闭 td,关闭 iframe,正如其他人所提到的)。我添加这个答案只是为了给你一些关于如何以不同方式做事的想法。尽快进入 CSS 是明智的。您目前使用的方法这些天已经过时了。
搜索 HTML5、CSS3 等。尽量避免使用表格进行布局。尽量避免同时使用 iframe。
一个起点是 http://learnlayout.com/
祝学习顺利!
<html>
<head>
<title>v1.0.0</title>
<style type="text/css">
body {
background: #6699ff url(images/html/background001.png);
}
td.iframeContainer {
background-color: #6699ff;
width: 660px;
height: 500px;
}
iframe {
width: 660px;
height: 500px;
border: 0;
}
td#controls {
background-color: #fff;
width: 100px;
height: 500px;
}
</style>
</head>
<body>
<center>
<table>
<tr>
<td class="iframeContainer">
<iframe src="index.html">browser said no</iframe>
</td>
</tr>
<tr>
<td id="controls">
<img src="images/html/controls.png">
</td>
</tr>
</table>
</center>
</body>
</html>
编辑: 我快速搜索了一些可以帮助您开始正确的 Web 开发的内容。这似乎很有希望:http://channel9.msdn.com/Series/HTML5-CSS3-Fundamentals-Development-for-Absolute-Beginners
ps。不要试图以任何方式听起来有辱人格。例如,旧的 skool html 布局实际上在 html 电子邮件中仍然占有一席之地,但考虑到那里有一个 iframe,我猜你没有在处理电子邮件模板..