#main {
width: 100%;
display: table;
border: 5px black solid;
}
#left {
width: 75%;
display: table-cell;
background-color: #F0F0F0;
border: 2px red solid;
}
#right {
width: 25%;
display: table-cell;
/*background-color: #000000;*/
border: 2px green solid;
}
#photo-center {
position: relative;
}
#large {
width: 80%;
}
#small {
width: 25%;
position: absolute;
left: -20px;
top: -20px;
z-index: 1;
}
<div id="main">
<div id="left">
<div id="photo">
<div id="photo-center">
<img src="image/1.jpg" id="large">
<img src="image/2.jpg" id="small">
</div>
</div>
</div>
<div id="right">
<table>
<tr>
<td class="price">$180</td>
<td class="buy">
<a href="#">buy</a>
</td>
</tr>
<tr>
<td class="price">$180</td>
<td class="buy">
<a href="##">buy</a>
</td>
</tr>
<tr>
<td class="price">$180</td>
<td class="buy">
<a href="#">buy</a>
</td>
</tr>
<tr>
<td class="price">$180</td>
<td class="buy">
<a href="#">buy</a>
</td>
</tr>
<tr>
<td class="price">$180</td>
<td class="buy">
<a href="#">buy</a>
</td>
</tr>
<tr>
<td class="price">$180</td>
<td class="buy">
<a href="#">buy</a>
</td>
</tr>
</table>
</div>
</div>
爲什麼有多餘的空白區域,我的右表孔區域上方,如何設置左表細胞的大照片中心?
加上'垂直對齊:首位;''在#right' –