<p align="left" style="cursor:hand;">手形</p>
这样文字了会变成手形的了,cursor之后参数还可以变成其它形状的,具体参数,可以参考有关CSS的语法。
------------------------------------------------
www.cndigs.com掘客园--发掘、推荐软件开发资源,分享、交流技术开发心得
asp.net2.0资料
http://www.cndigs.com/search.php?search=asp.net%202.0&tag=true
asp.net资料
http://www.cndigs.com/search.php?search=asp.net&tag=true
ajax资料
http://www.cndigs.com/search.php?search=ajax&tag=true

解决方案 »

  1.   

    <table border="1" width="100%">
    <tr>
    <td width="100%" style="cursor:hand"><span width="50%" style="background-color:red;cursor:default">编号</span></td>
    </tr>
    </table>
      

  2.   

    我要让span填充整个TD,只有TD的边上不填充,麻烦再指点一下
      

  3.   

    <table border="1" width="100%">
    <tr>
    <td style="cursor:hand;align:center;width:95%"><span width="95%" style="background-color:red;cursor:default">编号</span></td>
    </tr>
    </table>
      

  4.   

    <td style="padding:2;cursor:hand">
      <span style="width:100%;height:100%;cursor:default">&nbsp;</span>
    </td>padding:2 指定TD边上留2像素宽度
      

  5.   

    Table.htc代码如下:
    <PUBLIC:COMPONENT>
    <PUBLIC:ATTACH EVENT="ondocumentready" HANDLER="DoInit"/>
    <PUBLIC:ATTACH EVENT="onmousedown" HANDLER="trTitle_MouseDown"/>
    <PUBLIC:ATTACH EVENT="onmousemove" HANDLER="trTitle_MouseMove"/>
    <PUBLIC:ATTACH EVENT="onmouseup" HANDLER="trTitle_MouseUp"/>
    </COMPONENT>
    <script language=javascript>
    function DoInit()
    {
        create();
    }
    function create(){
        var html="<table style =\"table-layout:fixed\" nowrap  border=\"0\" cellspacing=\"1\" cellpadding=\"1\" borderColor =\"#ebebeb\"><Tbody><tr style='behavor:url=()'><td style=\"background-color:#ffffff;cursor:hand\">";
        //var html="<table border=\"1\" width=\"100%\"><tr><td>";
        html+="<span style=\"background-color:red;cursor:default\">编号";   
         html+="</span></td><td width='200'>AAAAAA</td><td>BBBBBB</td></tr></table>";
        element.document.body.insertAdjacentHTML("afterBegin",html);
        //alert(html);
    }
    </script>span的样式如下:
    A.htm的代码如下:
    <html>
    <head>
    <style>
    span {
    font-family: "宋体", "新宋体";
    font-size: 9pt;
    width:100%;
    background-color:red;
    height: 100%;
    overflow: hidden;
    cursor: default;
    white-space: nowrap;
    vertical-align: bottom;
    padding-top: 4;
    margin-right: 2px;
    margin-left: 3px;
    }
    </style>
    </head>
    <body>
    <table width=100%>
    <tr style="behavor:url(../JS/Table.htc)">
    <td><span width="100%">编号</span></td>
    </tr>
    </table>
    </body>
    </html>
    问题是这样,页面加载后span不能填充所在的整个TD,宽度只有span中的文字宽度,怎样才能是span填充整个TD
      

  6.   

    你在td里面设置align,width有什么用啊,我很菜啊,麻烦告诉一下吧<td style="cursor:hand;align:center;width:95%"><span width="95%" style="background-color:red;cursor:default">编号</span></td>