藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年8月25日 8:28

請教一個css子對象的問題。

<table class="a1">
  <tr>
    <td colspan="2">
  <table>
   <tr>
    <td class="title">標題</td>
    <td class="more" onclick="這裡加鏈接"></td>
   </tr>
  </table>
</td>
  </tr>
  <!--循環體begin-->
  <tr>
    <td class="ico"></td>
    <td>內容</td>
  </tr>
  <!--循環體end-->
  <tr>
    <td colspan="2" class="foot"></td>
  </tr>
</table>

以上表格裡,怎麼用table.a1來表示td.title
我是這樣寫的
table.a1>table>td.title
好像不太對。
請指點,謝謝

[code]
<style type="text/css">
<!--
#a1 {--------- }

#a1 td { ------------}

#a1 td.a2 {-----------}

#a1 td a {----------}
-->
</style>
<table width="300" cellspacing="0" cellpadding="0" id="a1">
  <tr>
    <td>12345667890</td>
        <td class="a2">12345667890</td>
        <td><a href="#">12345667890</a></td>
  </tr>
</table>
[/code]




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com