【发布时间】:2016-07-07 01:00:23
【问题描述】:
这是当前显示的样子:
这就是我想要的样子:
.d1{
background:#F0F0F0;
border: 1px solid #A4A4A4;
}
#designs input, #itemz input{
height:19px;
font-size: 15px;
}
#designs #fds_image {
background-size: 190px 221px;
height: 221px;
width: 190px;
overflow:hidden;
}
#designs #fds_image img{
width: 190px;
}
<table id="designs" width="auto" align="center" border="0" bgcolor="#EBEBEB" cellspacing="5">
<tbody>
<tr>
<td class="d1" name="item">
<div id="fds_image">
<button class="preview_switch">M</button>
</div>
<hr>
<div class="bottom_bar">
<button name="preview" data-original="m">Preview</button>
<br>
<tbody>
<td class="d1" name="item">
<div id="fds_image">
<button class="preview_switch">M</button>
</div>
</div>
<hr>
<div class="bottom_bar">
<button name="preview" data-original="m">Preview</button>
我尝试了很多事情并在网上进行了研究,但由于某种原因,它不起作用。我怎样才能让表格并排显示,就像我展示的那样?
【问题讨论】:
-
分配显示:inline-block;到桌子上?
-
还是一样的位置 :-(
-
你的代码结构完全错误。我的意思不是谴责,但你有
<tbody>没有</tbody>,你有另一个<tbody>嵌套在一个<div>嵌套在一个表格单元格内......但没有那个@987654329 的父表@ 要附加到... -
谢谢,我会解决的:D
标签: html css html-table