这些属性基本不可以, align可以,只能在线定义

解决方案 »

  1.   

    "align可以,只能在线定义"是何解呢,我想用的是table中的align。css中只提供text的,
    另外,在.net的treeview中,我用以下方式来定义了链接样式,可是无效,不知是何原因a:link 
    {
    FONT-FAMILY:Verdana,Arial;
    FONT-SIZE: 12px;
    COLOR: Blue;
    TEXT-DECORATION: none;
    }a:visited 
    {
    FONT-FAMILY:Verdana,Arial;
    FONT-SIZE: 12px;
    COLOR: blue;
    TEXT-DECORATION: none;
    }a:hover 
    {
    FONT-FAMILY:Verdana,Arial;
    FONT-SIZE: 12px;
    COLOR: red;
    TEXT-DECORATION:underLINE
    }
      

  2.   

    you can try "padding" on th/td, and "border-spacing" on table (it may not work in IE):
    <style type="text/css">
    table.tableone{
     border-collapse: collapse;
     border-spacing: 10px;
     border:1px #000000 solid;
    }table.tableone td{
     padding:5px;
     border:1px #0000FF solid;
    }
    </style><table class="tableone">
    <tr>
    <td>R1C1 here is some data</td>
    <td>R1C2 is some data</td>
    <td>R1C3 is some data</td>
    <td>R1C4 is some data</td>
    </tr>
    <tr>
    <td>R2C1 here is some data</td>
    <td>R2C2 here is some data</td>
    <td>R2C3 here is some data</td>
    <td>R2C3 here is some data</td>
    </tr>
    </table>
      

  3.   

    use text-align in table:table.tableone{
     border-collapse: collapse;
     border-spacing: 10px;
     border:1px #000000 solid;
     text-align:center;
    }