合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
[CSS参考手册](http://css.doyoe.com/)»[属性列表](#)»[内容属性](#)» 相关内容: [**其它内容属性参考**选择其它项](#) - [content](#) - [counter-increment](#) - [counter-reset](#) - [quotes](#) # counter-reset - **版本:CSS2** - 继承性:无 ### 语法: **counter-reset**:none | [[<identifier>](#)[<integer>](#)]+ **默认值**:none ### 取值: none:阻止计数器复位[<identifier>](#):identifier定义一个或多个将被复位的selector,id,或者class[<integer>](#):定义被复位的数值,可以为负值,默认值是0 ### 说明: **将指定selector的计数器复位。** - 对应的脚本特性为**counterReset**。 ### 兼容性: - 浅绿 = 支持 - 红色 = 不支持 - 墨绿 = 部分支持 - 橙色 = 实验性质 <table class="gdataform"><thead><tr><th><a href="#browser" title="查看本文档测试时所用浏览器版本">支持版本</a>\类型</th> <th><span class="browser-ie">IE</span></th> <th><span class="browser-firefox">Firefox</span></th> <th><span class="browser-safari">Safari</span></th> <th><span class="browser-chrome">Chrome</span></th> <th><span class="browser-opera">Opera</span></th> </tr></thead><tbody><tr><th>版本</th> <td class="unsupport">6.0-7.0</td> <td rowspan="2" class="support">4.0</td> <td rowspan="2" class="support">5.1</td> <td rowspan="2" class="support">13.0</td> <td rowspan="2" class="support">11.50</td> </tr><tr><th>版本</th> <td class="support">8.0</td> </tr></tbody></table> ### 示例: - **默认时被复位的计数器:** 1. 列表项 1. 列表项 1. 列表项 - **将计算器复位为20:** 1. 列表项 1. 列表项 1. 列表项 - **将计算器复位为-1:** 1. 列表项 1. 列表项 1. 列表项 Copyright © 2006-2012 [Doyoe](http://www.doyoe.com/). All Rights Reserved