根据规范,CSS 计数器是否只能与content属性一起使用?
* { content: counter(mycounter) "! "; counter-increment: mycounter }
Run Code Online (Sandbox Code Playgroud)
或者它们也可以/将与其他属性一起使用,例如(随机示例)padding?
/*
is this possible?
is this supposed to be possible?
*/
* { padding:counter(mycounter)px; }
Run Code Online (Sandbox Code Playgroud)
最后,如果这是 CSS 的一个特性,那么它在浏览器中的实现程度如何?
| 归档时间: |
|
| 查看次数: |
280 次 |
| 最近记录: |