css文件
/*前台文件使用的Css文件*/
body
{
margin:0px;
background-color:#000000;
color:#333333;
font-size:15px;
}
这样引用到页面中Css不起作用
如果把css文件中的注释去掉
body
{
margin:0px;
background-color:#000000;
color:#333333;
font-size:15px;
}
则css文件可以起作用..
结论:是 /* */的注释引起的..
环境: IE6,IIS6,VS2003
不知道为什么会这样..
//add by day
// 如果将注释的内容换成英文的,则没有问题. 如: /* css of index page */
// 如果注释是中文,需要在引用css的页面将字符集设成中文的
// <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
//或者在web.config中设置..