我偶然发现了this question,我注意到用户使用了一些我以前从未见过的符号:
@font-face {
/* CSS HERE */
}那么,这个@符号是CSS3中的新东西,还是我忽略了的旧东西?这是不是类似于在ID中使用#,而在类中使用.?谷歌没有给我任何与此相关的好文章。@符号在CSS中的用途是什么?
发布于 2013-10-05 03:14:55
ProBoards CSS样式也将这些用作变量。
下面是他们的一个CSS页面中的一个小片段:
@wrapper_width: 980px;
@link_color: #c06806;
@link_font: 100% @default_forum_text_font_family;
@link_decoration: none;
#wrapper { width: @wrapper_width; margin: 0 auto; overflow-x: hidden; }
table { table-layout: fixed; }
a { cursor: pointer; color: @link_color; font: @link_font; text-decoration: @link_decoration; }注意:不是原生的,请看第一条评论。
https://stackoverflow.com/questions/3453257
复制相似问题