css代码中进行注释的三种方法
1、选择器(childselector)
如果你想在ie中隐藏一个css定义,可以使用子选择器。
css注释代码:
html>bodyp { /*declarations*/ }
2、“通配符”(*)
这种写法只有ie浏览器可以理解(对其他浏览器都隐藏)
css注释代码:
*htmlp{ /*declarations*/ }
3、“反斜线”(\)
如果你希望ie/win有效而ie/mac隐藏,可以使用“反斜线”技巧。
css注释代码:
/*\*/ *htmlp{ declarations } /**/
以上就是css中关于注释的三种方法介绍的详细内容。
