<!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 class="w3-container">
<h2>W3.CSS列表</h2>
<p>默认情况下,列表的宽度为100%。使用width属性更改此设置:</p>
<p>默认:</p>
<ul class="w3-ul w3-border">
<li>吉尔</li>
<li>亚当</li>
</ul>
<p>30% 宽度:</p>
<ul class="w3-ul w3-border" style="width:30%">
<li>吉尔</li>
<li>亚当</li>
</ul>
<p>50% 宽度:</p>
<ul class="w3-ul w3-border" style="width:50%">
<li>吉尔</li>
<li>亚当</li>
</ul>
<p>80% 宽度:</p>
<ul class="w3-ul w3-border" style="width:80%">
<li>吉尔</li>
<li>亚当</li>
</ul>