2012-08-09 48 views

回答

2

生成表RUNAT = “服务器”

<table id="myTable" runat="server" width="100%">  
    <tr> 
    <td> 
    <span></span> 
    </td> 
    </tr> 

    </table> 

    **In code behind u do like this** 
myTable.Rows[1].Cells[0].InnerHtml = "<span id="1">" + YOURTEXT+ "</span>"; 
+0

@nikhil是否可以在asp.net c#中动态添加css。 (3):之后, .ao-annotations跨度:第n个孩子(4):之后, .ao-item:第n个孩子(2).ao注释跨度:第n个孩子:nth-​​child(1):之后{ \t left:auto; \t right:100%; \t margin:-16px -16px 0 0; \t background-image:url(../ images/arrow_left.png); } – user1570594 2012-08-09 09:37:54

+0

使它高于css类 – 2012-08-09 09:40:21

+0

添加类似myTable.Rows [1] .Cells [1] .Attributes.Add(“Class”,“YourClassName”); – 2012-08-09 09:40:51