私は現在、写真を含む個人のウェブサイトに取り組んでいます。これらの写真のフレームを作成したかったので、フレームの写真を断片にスライスし、各部分を div にしました。これは、フレームの写真の特定の部分を引き伸ばしたいが、エッジは引き伸ばしたくないためです。たとえば、ここに私のテーブルがあります。
<table>
<tr>
<td height="93px" width="93px"><div id="photo_corner_topleft"></div></td>
<td height="93px"><div id="photo_beggining_top"></div><div id="photo_side_top"></div><div id="photo_ending_top"></div></td>
<td height="93px" width="93px"><div id="photo_corner_topright"></div></td>
</tr>
<tr>
<td width="93px"><div id="photo_beggining_left"></div><div id="photo_side_left"></div><div id="photo_ending_left"></div></td>
<td>
<div id="photo_content" align="center">
<!-- HERE goes the photo. -->
</div>
</td>
<td width="93px"><div id="photo_beggining_right"></div><div id="photo_side_right"></div> <div id="photo_ending_right"></div></td>
</tr>
<tr>
<td height="93px" width="93px"><div id="photo_corner_bottomleft"></div></td>
<td><div id="photo_beggining_bottom"></div><div id="photo_side_bottom"></div><div id="photo_ending_bottom"></div></td>
<td height="93px" width="93px"><div id="photo_corner_bottomright"></div></td>
</tr>
</table>
したがって、「終わり」と「始まり」の div を押し出さずに、「photo_side_whatever」の div をできるだけ長くしたいと考えています。私は他の質問をチェックしましたが、まだそれを作ることができませんでした. ここに私のdivがあります:
#photo_side_left {
min-height: 224px;
width: 93px;
height: auto;
background-image: url(img/dynamic_frame/frame_09.png);
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}