在Asp.net里如何完整运用样式表来控制界面(up有分~~) The same as ASP. Each asp.net page include three files: *.aspx,*.aspx.vb,*.aspx.resx,insert your css into the file *.aspx. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 By the way,you should delete the absolute position of each controls. <LINK href="css/css.css" rel="stylesheet"> 你找一本有关CSS的书来看,不难弄懂。在页面中按楼上的方法加入CSS样式文件就行了。 服务器控件中凡是有这一项属性的全能在CSS里控制 <LINK href="css/css.css" rel="stylesheet">或直接把 style.css拖到你的叶面中 注意不要修改具體Control的樣式屬性哦否則就失效了 css在.net中,与在asp中是一样的。你的问题可能是一些css规则:比如:对于表格,就不会继承容器的css.<table id="table1" style="font:100pt"><tr><td> <table id="table2"> </table></td></tr></table>这个例子里,table1定义的样式对于table2来说就不会起作用。 现在有这样一个问题:这个控件:DropDownList我想定义它的高,宽?~~~如何~ 写在何处?*.aspx里?asp:DropDownList.....?可以写全吗,如里想写在style里如何写??多谢?~~ the same as use css in html... style="Z-INDEX: 101; LEFT: 211px; POSITION: absolute; TOP: 237px; width=600" runat="server" Width="109px" Height="56px" <asp:DropDownList id="DropDownList1" style="Z-INDEX: 101; LEFT: 211px; POSITION: absolute; TOP: 237px; width=600" runat="server" Width="109px" Height="56px"></asp:DropDownList> kokblack(人人为我,我为人人)写在何处?*.aspx里?asp:DropDownList.....?可以写全吗,如里想写在style里如何写??多谢?~~--------------------------------------------------写在Page_Load里面:比如你的控件名称是Control1,Control1.Attributes.Add("Class", "Style Class Name"); vs2008 asp.net 的 DataGrid 问题:点标题显示内容 Html控件 select前台动态绑定? 如何在.net中从隐藏的倥件中取值啊,很急,谢谢. 高手们,我请教下关于如何控制GridView页码颜色的问题 一个编译错误,请教各位 编辑ASP.NET网页只用dw2004行不行啊??为什么??? 如何调用组件,help 给大家推荐一个 IT 方面的社区,希望对大家有帮助 类似树形结构中 混合对象集合向上查找 设计思路 技术的悲哀? 如何在ASP.NET中给DataGrid动态添加column 关于ispostback
在页面中按楼上的方法加入CSS样式文件就行了。
或直接把 style.css拖到你的叶面中
否則就失效了
你的问题可能是一些css规则:比如:对于表格,就不会继承容器的css.
<table id="table1" style="font:100pt">
<tr>
<td>
<table id="table2">
</table>
</td>
</tr>
</table>这个例子里,table1定义的样式对于table2来说就不会起作用。
写在何处?*.aspx里?asp:DropDownList.....?可以写全吗,如里想写在style里如何写??多谢?~~
--------------------------------------------------写在Page_Load里面:
比如你的控件名称是Control1,Control1.Attributes.Add("Class", "Style Class Name");