W3C中文教程
全球最大最新的中文 Web 技术教程
HTML CSS SQL PHP COLORS MYSQL BOOTSTRAP
 

W3.CSS 徽章和标签



徽章实例

News  6

Comments 8

Updates 9

Example

<p>News <span class="w3-badge w3-green">6</span></p>
<p>Comments <span class="w3-badge w3-red">8</span></p>
<p>Updates <span class="w3-badge w3-dark-grey">9</span></p>
尝试一下 »

标签实例

Example New!

Comments More Later!

Example

<p>Example <span class="w3-tag w3-blue">New!</span></p>
<p>Comments <span class="w3-tag w3-teal">More Later!</span></p>
尝试一下 »

列表中的徽章

  • Jill 5
  • Eve 3
  • Adam 8

Example

<ul class="w3-ul w3-border">
  <li>Jill <span class="w3-badge w3-green w3-right">5</span></li>
  <li>Eve <span class="w3-badge w3-green w3-right">3</span></li>
  <li>Adam <span class="w3-badge w3-green w3-right">8</span></li>
</ul>
尝试一下 »

Example

<div class="w3-tag w3-round w3-green" style="padding:3px">
<div class="w3-tag w3-round w3-green" style="border:1px solid white">
Falcon Ridge Parkway
</div>
</div>
尝试一下 »

大标签

66

Example

<span class="w3-tag w3-jumbo w3-padding-large w3-blue">66</span>
尝试一下 »

大徽章

66

Example

<p><span class="w3-badge w3-jumbo w3-padding-large w3-red">66</span></p>
尝试一下 »

字母用作标签

A U G U S T

Example

<span class="w3-tag w3-black">J</span>
<span class="w3-tag w3-black">A</span>
<span class="w3-tag w3-black">N</span>
<span class="w3-tag w3-black">U</span>
<span class="w3-tag w3-black">A</span>
<span class="w3-tag w3-black">R</span>
<span class="w3-tag w3-black">Y</span>
尝试一下 »