W3.CSS-列表

W3.CSS可以在w3-ul上使用各种样式来显示不同类型的列表。

序号类名和描述
1w3-ul
表示没有任何边界的基本列表。
2w3-striped
显示剥离列表。
3w3-bordered
绘制带有行跨边框的列表。
4w3-border
绘制带有边框的列表。
5W3-card
将列表绘制为卡片。
6w3-tiny
用很小的字体绘制一个列表。
7w3-small
用小字体绘制列表。
8w3-large
用大字体绘制列表。
9w3-xlarge
用超大字体绘制列表。
10w3-xxlarge
用非常大的字体绘制列表。
11w3-xxxlarge
用非常大的超大字体绘制列表。
12w3-jumbo
用超大字体绘制列表。

w3css_lists.htm

<html>
   <head>
      <title>The W3.CSS Lists</title>
      <meta name = "viewport" content = "width = device-width, initial-scale = 1">
      <link rel = "stylesheet" href = "https://www.w3schools.com/lib/w3.css">
   </head>
   
   <body class = "w3-container">
      <h2>List Demo</h2>
      <hr/>
      <h3>Simple List</h3>
      <ul class = "w3-ul">
         <li>Mahesh Parashar</li>
         <li>Rahul Sharma</li>
         <li>Mohan Sood</li>
      </ul>
      
      <h3>Stripped List with borders</h3>
      <ul class = "w3-ul w3-striped w3-bordered w3-border">
         <li>Mahesh Parashar</li>
         <li>Rahul Sharma</li>
         <li>Mohan Sood</li>
      </ul>
      
      <h3>List as Card</h3>
      <ul class = "w3-ul w3-card-4">
         <li>Mahesh Parashar</li>
         <li>Rahul Sharma</li>
         <li>Mohan Sood</li>
      </ul>
      
      <h3>List with very small font</h3>
      <ul class = "w3-ul w3-tiny">
         <li>Mahesh Parashar</li>
         <li>Rahul Sharma</li>
         <li>Mohan Sood</li>
      </ul>
   </body>
</html>

作者:terry,如若转载,请注明出处:https://www.web176.com/w3css/919.html

(0)
打赏 支付宝 支付宝 微信 微信
terryterry
上一篇 2020年11月3日 下午2:41
下一篇 2020年11月3日 下午2:47

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注