作者:我爱左_470 | 来源:互联网 | 2020-09-04 00:00
p { font-size: 9pt}
a:hover { font-size: 9pt; color: #FF0000; text-decoration: none}
a:link { font-size: 9pt; color: #0000FF; text-decoration: none}
a:visited { font-size: 9pt; color: #990099; text-decoration: none}
.button { font-size:9pt;background:lightgreen;border-color:black;border-width:1pt;height:20}
4、动态变换:
在asp.net中,有的时候要动态变换CSS,比如有的时候做个性化页面,可以这样做
1)仍然需要在head标记中添加标记声明:
2 )之后,在要更换CSS的页面中,使用如下js代码
void fuction
{
MyStyleSheet.Attributes.Add("href","/css/flostyle.css")
}
3)页面就可以动态控制要引用的css文件了。
以上就是aspx怎么引入css?的详细内容,更多请关注 第一PHP社区 其它相关文章!