【发布时间】:2016-05-25 01:49:09
【问题描述】:
我正在尝试并排显示一个表格、一个 iframe 和一个表格。中间没有休息或任何东西。我希望所有三个都居中。
这毫无意义。因为我的屏幕足够大,所以它们有足够的空间显示在同一“行”上。
请帮忙。
代码如下:
<center>
<table border="0">
<tr id="hidethis" style="display:none;">
<td><iframe src="menu.html"height=450 width=400 frameborder=0 name = "list" style =""></></iframe></td>
</tr>
<tr id="hidethisalso" style="display:none;">
<td>Enter code for song to play</td>
</tr>
</table>
<iframe height=450 width=450 frameborder=0 name = "cake" style =""></></iframe>
<table border="0">
<tr id="hidethistoo" style="display:none;">
<td><iframe src="menu.html"height=450 width=400 frameborder=0 name = "list" style =""></></iframe></td>
</tr>
<tr id="hidethisaswell" style="display:none;">
<td>Enter code for song to delete</td>
</tr>
</table>
</center>
【问题讨论】:
-
你可以尝试将每个表包装在它自己的具有
display:inline-block样式的div中 -
你知道一种只使用 Javascript 和 HTML 的方法——不使用 CSS。无论如何感谢您的帮助。感谢您的宝贵时间。
-
你有内联css,为什么解决方案不能这样做?
标签: javascript html formatting line-breaks