我在关于PHP和XHTML隐藏特性的问题中学到了一些有用的技巧。
这里有一个关于CSS的问题。虽然CSS容易上手,但是要学习所有东西、默认行为、属性等需要一点时间。
以下是一些开端:
@charset "UTF-8"; /* set the character set. must be first line as Gumbo points out in comments */
.element {
/* takes precedence over other stylings */
display: block !important;
/* mozilla .... rounded corners with no images */
-moz-border-radius: 10px;
/* webkit equivalent */
-webkit-border-radius: 10px
}
这些并不是非常隐秘(hidden),但它们的使用通常不是很广泛。你发现了哪些CSS的技巧、诀窍和罕见功能呢?