The same as ASP.
   Each asp.net page include three files: *.aspx,*.aspx.vb,*.aspx.resx,
insert your css into the file *.aspx.

解决方案 »

  1.   

    By the way,you should delete the absolute position of each controls.
      

  2.   

    <LINK href="css/css.css" rel="stylesheet">
      

  3.   

    你找一本有关CSS的书来看,不难弄懂。
    在页面中按楼上的方法加入CSS样式文件就行了。
      

  4.   

    服务器控件中凡是有这一项属性的全能在CSS里控制
      

  5.   

    <LINK href="css/css.css" rel="stylesheet">
    或直接把 style.css拖到你的叶面中
      

  6.   

    注意不要修改具體Control的樣式屬性哦
    否則就失效了
      

  7.   

    css在.net中,与在asp中是一样的。
    你的问题可能是一些css规则:比如:对于表格,就不会继承容器的css.
    <table id="table1" style="font:100pt">
    <tr>
    <td>
     <table id="table2">
     </table>
    </td>
    </tr>
    </table>这个例子里,table1定义的样式对于table2来说就不会起作用。
      

  8.   

    现在有这样一个问题:这个控件:DropDownList我想定义它的高,宽?~~~如何~
      

  9.   

    写在何处?*.aspx里?asp:DropDownList.....?可以写全吗,如里想写在style里如何写??多谢?~~
      

  10.   

    the same as use css in html...
      

  11.   

    style="Z-INDEX: 101; LEFT: 211px; POSITION: absolute; TOP: 237px; width=600" runat="server" Width="109px" Height="56px"
      

  12.   

    <asp:DropDownList id="DropDownList1" style="Z-INDEX: 101; LEFT: 211px; POSITION: absolute; TOP: 237px; width=600" runat="server" Width="109px" Height="56px"></asp:DropDownList>
      

  13.   

    kokblack(人人为我,我为人人)
    写在何处?*.aspx里?asp:DropDownList.....?可以写全吗,如里想写在style里如何写??多谢?~~
    --------------------------------------------------写在Page_Load里面:
    比如你的控件名称是Control1,Control1.Attributes.Add("Class", "Style Class Name");