<!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">
<style>
.city {display:none}
</style>
</head>
<div class="w3-container">
<h2>模式标签</h2>
<p>在此示例中,我们在模式内添加选项卡式内容。</p>
<button onclick="document.getElementById('id01').style.display='block'" class="w3-button w3-black">打开选项卡模式</button>
<div id="id01" class="w3-modal">
<div class="w3-modal-content w3-card-4 w3-animate-zoom">
<header class="w3-container w3-blue">
<span onclick="document.getElementById('id01').style.display='none'"
class="w3-button w3-blue w3-xlarge w3-display-topright">×</span>
<h2>模式头部</h2>
</header>
<div class="w3-bar w3-border-bottom">
<button class="tablink w3-bar-item w3-button" onclick="openCity(event, 'London')">伦敦</button>
<button class="tablink w3-bar-item w3-button" onclick="openCity(event, 'Paris')">巴黎</button>
<button class="tablink w3-bar-item w3-button" onclick="openCity(event, 'Tokyo')">东京</button>
</div>
<div id="London" class="w3-container city">
<h1>伦敦</h1>
<p>伦敦是英国人口最多的城市,拥有超过900万居民。</p>
<p>这对他来说是痛苦的,他会被认为是有帮助的,但是他会遭受巨大的痛苦。因为我说,谁是我们的军队,除了他们中的任何一个可以帮助以外,什么都没有。</p>
</div>