<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.cn/w3css/4/w3.css">
<body>
<div class="w3-container">
<h1>使用 w3-display-container</h1>
<div class="w3-display-container w3-green" style="height:300px;">
<div class="w3-display-topleft">左上方</div>
<div class="w3-display-topright">右上方</div>
<div class="w3-display-bottomleft">左下方</div>
<div class="w3-display-bottomright">右下方</div>
<div class="w3-display-left">左</div>
<div class="w3-display-right">右</div>
<div class="w3-display-middle">中间</div>
<div class="w3-display-topmiddle w3-hide-small">顶部中间</div>
<div class="w3-display-bottommiddle w3-hide-small">中下</div>
</div>
</div>
</body>
</html>