10

以下の例のように境界線を作成する必要があります。

HTML:

<table width="770">
  <tr>
    <td>picture (border only to the left and bottom ) </td>
    <td>text</td>
  </tr>
  <tr>
    <td>text</td>
    <td>picture (border only to the left and bottom) </td>
  </tr>
</table>
4

3 に答える 3

24

次のスタイルを使用できます。

style="border-left: 1px solid #cdd0d4;"  
style="border-bottom: 1px solid #cdd0d4;"
style="border-top: 1px solid #cdd0d4;"
style="border-right: 1px solid #cdd0d4;"

これであなたはあなたが使用しなければならない

<td style="border-left: 1px solid #cdd0d4;border-bottom: 1px solid #cdd0d4;">  

また

<img style="border-left: 1px solid #cdd0d4;border-bottom: 1px solid #cdd0d4;"> 
于 2013-01-26T10:09:42.550 に答える
6

クラス.border-lbを与え、このCSSを与える

.border-lb {border: 1px solid #ccc; border-width: 0 0 1px 1px;}

そしてHTML

<table width="770">
  <tr>
    <td class="border-lb">picture (border only to the left and bottom ) </td>
    <td>text</td>
  </tr>
  <tr>
    <td>text</td>
    <td class="border-lb">picture (border only to the left and bottom) </td>
  </tr>
</table>

スクリーンショット

フィドル: http: //jsfiddle.net/FXMVL/

于 2013-01-26T10:09:56.573 に答える
0

ここに示すように、borderプロパティを使用する必要があります:jsFiddle

HTML:

<table width="770">
    <tr>
        <td class="border-left-bottom">picture (border only to the left and bottom ) </td>
        <td>text</td>
    </tr>
    <tr>
        <td>text</td>
        <td class="border-left-bottom">picture (border only to the left and bottom) </td>
    </tr>
</table>`

CSS:

td.border-left-bottom{
    border-left: solid 1px #000;
    border-bottom: solid 1px #000;
}
于 2013-01-26T10:14:50.253 に答える