 |
| 我的知识库 |
 |
|
|
教你在asp.net中动态变更CSS |
|
[ 作者: | 文章来源: 网页教学网 | 点击数: 367 | 更新时间: 2007-11-4 8:57:54 ] |
在asp.net中,有的时候要动态变换CSS,比如有的时候做个性化页面,可以这样做。 Www@Spdns@com
中国南通服务器网
之后,在要更换CSS的页面中,使用如下代码 中国南通服务器网
以下为引用的内容: Sub Page_Load(Sender As Object, E As EventArgs) If Not (IsPostBack) MyStyleSheet.Attributes.Add("href","/css/flostyle.css") End If |
南通服务器网
Www.Spdns.com
|
|
|
|
|