<!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">
<h1>使用 w3-display-container</h1>
<div class="w3-display-container w3-green" style="height:300px;">
<div class="w3-padding w3-display-topleft">左上方</div>
<div class="w3-padding w3-display-topright">右上方</div>
<div class="w3-padding w3-display-bottomleft">左下方</div>
<div class="w3-padding w3-display-bottomright">右下方</div>
<div class="w3-padding w3-display-left">左</div>
<div class="w3-padding w3-display-right">右</div>
<div class="w3-padding w3-display-middle">居中</div>
<div class="w3-padding w3-display-topmiddle">中间顶部</div>
<div class="w3-padding w3-display-bottommiddle">中间底部</div>
</div>
</div>
</body>
</html>