counter

UK[?ka?nt?(r)] US[?ka?nt?]

n.Counter;counter;opposite;(certain board game) chips

adj. Opposite

vt. Counterattack, fight back; move in the opposite direction, confront; retort, answer

vi. Move in the opposite direction, confront; rebuttal

adv. In the opposite direction; in the opposite direction

Third person singular: counters Plural: counters Present participle: countering Past tense: countered Past participle: countered

reset

英[?ri:?set] 美[ri?s?t]

vt.Reset; rearrange; reinstall

n.Replace; replay something

vi.Reset; clear

Third person singular: resets Present participle: resetting Past tense: reset Past participle: reset

css counter-reset property syntax

Function:Set the value of the counter for the number of occurrences of a certain selector. Default is 0.

Description: Using this attribute, the counter can be set or reset to any value, either positive or negative. If number is not provided, it defaults to 0.

Note: If "display: none" is used, the counter cannot be reset. If you use "visibility: hidden" you can reset the counter. All browsers support the counter-reset attribute.

css counter-reset property example

<!DOCTYPE>
<html>
<head>
<style type="text/css">
a:after
{content: " (" attr(href) ")"
}
</style>
</head>

<body>
<p><a href="http://miracleart.cn">php中文網(wǎng)</a>有很多免費(fèi)的視頻教程</p>
<p><b>注釋:</b>如果已規(guī)定 !DOCTYPE,那么 Internet Explorer 8 (以及更高版本)支持 content 屬性。</p>
</body>
</html>

Run instance ?

Click the "Run instance" button to view the online instance