日期:2014-05-17  浏览次数:20510 次

table 细边框
HTML code
<table width='690' border='1' align='center' cellpadding='1' cellspacing='0' bgcolor='#F2F2F2'>

怎么变成西边框? 别写样式表!

------解决方案--------------------
HTML code


<table width='690' border='0' align='center' cellpadding='0' cellspacing='1' bgcolor='red'>
<tr bgcolor="white"><td>1</td><td>2</td></tr>
</table>

------解决方案--------------------
HTML code

    <table style="border:1px solid Red;">
        <tr>
            <td>1</td>
            <td>2</td>
        </tr>
    </table>

------解决方案--------------------
HTML code

<table width='690' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='red'>

------解决方案--------------------
HTML code

    <table style=" background-color:Red;" cellpadding="0" cellspacing="1">
        <tr style=" background-color:White;">
            <td>1</td>
            <td>2</td>
        </tr>
    </table>

------解决方案--------------------
<table width="200" border="1" style="border-collapse:collapse;" bordercolor="#000000">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
------解决方案--------------------
cellpadding='0' //边框填充的大小,设为0就好了
------解决方案--------------------
<table width="100%" cellpadding="0" cellspacing="1" bgcolor="#79A7E2" >
<TR>
<td bgcolor="#FFFFFF">2w</td>
<td bgcolor="#FFFFFF">2w</td>
</tr>
<TR>
<td bgcolor="#FFFFFF">2ss</td>
<td bgcolor="#FFFFFF">2ss</td>
</tr>
</table>