<!DOCTYPE html>
<html>
<head>
<title>W3.CSS(w3cschool.cn)</title>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<link rel="stylesheet" href="https://7npmedia.w3cschool.cn/w3.css">
</head>
<body>
<div class="w3-container">
<h2>按钮中的标记</h2>
<p>w3-badge 类可以在按钮内部使用:</p>
<p><button class="w3-btn w3-black">按钮
<span class="w3-badge w3-margin-left w3-white">1</span>
</button></p>
<p><button class="w3-btn w3-red">按钮
<span class="w3-badge w3-margin-left">2</span>
</button></p>
</div>
</body>
</html>