<!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>导航栏中的输入和按钮:</p>
<div class="w3-bar w3-light-grey w3-border">
<a href="#" class="w3-bar-item w3-button w3-mobile">主页</a>
<a href="#" class="w3-bar-item w3-button w3-mobile">链接 1</a>
<a href="#" class="w3-bar-item w3-button w3-mobile">链接 2</a>
<input type="text" class="w3-bar-item w3-input w3-white w3-mobile" placeholder="Search..">
<button class="w3-bar-item w3-button w3-green w3-mobile">查找</button>
</div>
<p>Padded navbar:</p>
<div class="w3-bar w3-light-grey w3-border w3-padding">
<a href="#" class="w3-bar-item w3-button w3-mobile">主页</a>
<a href="#" class="w3-bar-item w3-button w3-mobile">链接 1</a>
<a href="#" class="w3-bar-item w3-button w3-mobile">链接 2</a>
<input type="text" class="w3-bar-item w3-input w3-white w3-mobile" placeholder="Search..">
<button class="w3-bar-item w3-button w3-green w3-mobile">查找</button>
</div>
</div>
</body>
</html>