日期:2014-05-18  浏览次数:20336 次

vs2005中的css问题
在页面中链接css样式表
<link   href= "../../CSS/css.css "   type= "text/css "   runat= "server "   id= "css1 ">
没有效果,路径绝对没有问题,把样式直接写在页面中没问题,不知怎么回事,请各位帮帮忙

------解决方案--------------------
rel= "stylesheet " <link href= "../../CSS/css.css " type= "text/css " rel= "stylesheet " runat= "server " id= "css1 ">
------解决方案--------------------
这种引用外部样式不会所见即所得
------解决方案--------------------
如果应用了母版页就设置:StyleSheetTheme
如果没有就直接:
<link type= "text/css " rel= "Stylesheet " href= "链接文件 " />
------解决方案--------------------
楼上都说了,设置rel= "stylesheet "