When making a page, sometimes it is necessary to insert a background image into the table, and this background image is gradient and needs to be stretched. At this time, we can use CSS to control it
and define it in the css file
. left_table_middle {
MARGIN: 0px; ;PADDING-RIGHT: 8px; PADDING-LEFT: 8px; MIN-HEIGHT: 10px; BACKGROUND: url(images/leftboxContentBg.jpg) #edf6fb repeat-x 0px 0px; COLOR: #4d9ecf;
}
padding means blank and can be set to 0 repeat-x means horizontal and vertical tiling
html code is:
<table width="200" class="left_table_middle">
<tr>
<td height="100" nbsp;</td>
</tr>
</table>