<!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>
<div class="w3-container">
<h1>背景颜色</h1>
<p>w3-color 类定义 HTML 元素的背景色:</p>
</div>
<div class="w3-container w3-red">
<h2>伦敦</h2>
<p>伦敦是英国人口最多的城市,拥有超过900万居民。</p>
</div>
<div class="w3-container w3-teal">
<h2>伦敦</h2>
<p>伦敦是英国人口最多的城市,拥有超过900万居民。</p>
</div>
<div class="w3-container w3-yellow">
<h2>伦敦</h2>
<p>伦敦是英国人口最多的城市,拥有超过900万居民。</p>
</div>
<div class="w3-container w3-gray">
<h2>伦敦</h2>
<p>伦敦是英国人口最多的城市,拥有超过900万居民。</p>
</div>
<div class="w3-container w3-grey">
<h2>伦敦</h2>
<p>伦敦是英国人口最多的城市,拥有超过900万居民。</p>