⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pr_gen_counter-increment.asp@output=print

📁 W3Schools tutorial..web designing
💻 ASP@OUTPUT=PRINT
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Counter-increment Property</title>
 
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</head>
<body>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>


<h1>CSS counter-increment Property</h1>
<hr />
<a href="css_reference.asp"><img class="navup" src="../images/up.gif" alt="CSS Reference" border="0" /> Complete CSS Reference</a>
<hr />

<h2>Definition</h2>

<p>The counter-increment property sets how much the counter increments on each
occurrence of a selector. Default increment is 1.</p>
<b>Note:</b>  If &quot;display: none&quot; is used you should <b>not</b>  be
able to increment the counter. If &quot;visibility: hidden&quot; is used you <b>should</b> 
be able to increment the counter.
<p><b>Inherited:</b>     No</p>

<hr />

<h2><b>JavaScript Syntax</b></h2>
<p>CSS properties can also be dynamically changed with a JavaScript.</p>

<p><b>Scripting Syntax:</b>  <i>object</i>.style.counterIncrement=&quot;section 2&quot;</p>
<p>In our HTML DOM tutorial you can find a full
<a href="../htmldom/dom_obj_style.asp">Style Object Reference</a>.</p>
<hr />

<h2>Example</h2>

<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr>
    <td valign="top">A way to number sections with &quot;Section 1",
      &quot;Section 2&quot;,
      &quot;Section 3&quot;etc.:
      <p>h1:before&nbsp;<br />
 {<br />
    content: &quot;Section " counter(section) &quot; ";<br />
  /* Add 1 to section */<br />
    counter-increment: section;&nbsp;<br />
      }</p>
      <p>A way to number sections with &quot;Section 1",
      &quot;Section 3&quot;,
      &quot;Section 5&quot; etc.:</p>
      <p>h1:before&nbsp;<br />
 {<br />
    content: &quot;Section " counter(section) &quot; ";<br />
  /* Add 2 to section */<br />
    counter-increment: section 2;&nbsp;<br />
      }</p>
    </td>
  </tr>
</table>
<h2>Possible Values</h2>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr>
    <th align="left" valign="top" width="25%">Value</th>
    <th align="left" valign="top" width="75%">Description</th>
  </tr>
  <tr>
    <td valign="top">none</td>
    <td valign="top">Default. No increment of the counter in the selector</td>
  </tr>
  <tr>
    <td valign="top"><i>identifier number</i></td>
    <td valign="top">The <i>identifier</i> defines a selector, id, or class that
      should increment. The <i>number</i> defines how much to increment. <i>number</i>
      can be a positive number,zero, or a negative number</td>
  </tr>
</table>
<br />

<hr />
<a href="css_reference.asp"><img class="navup" src="../images/up.gif" alt="CSS Reference" border="0" /> Complete CSS Reference</a>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -