W3.CSS 圆形类
创建于 2024-12-03 /
40
字体:
[默认]
[大]
[更大]
w3-round-small
w3-round
w3-round-large
w3-round-xlarge
w3-round-xxlarge
w3-round-size 类向任何 HTML 元素添加圆角:
类 | 定义 |
---|---|
w3-round | 元素圆角 (border-radius) 4px |
w3-round-small | 元素圆角 (border-radius) 2px |
w3-round-medium | 元素圆角 (border-radius) 4px |
w3-round-large | 元素圆角 (border-radius) 8px |
w3-round-xlarge | 元素圆角 (border-radius) 16px |
w3-round-xxlarge | 元素圆角(border-radius)32px |
实例
<div class="w3-round w3-teal">w3-round</div> 亲自试一试 »Circle 圆圈类
w3-circle 类在圆圈内显示内容。
圆内图像

实例
<img class="w3-circle" src="img_car.jpg" alt="Car"> 亲自试一试 »圆内文字
实例
<div class="w3-padding-32 w3-red w3-circle w3-center"><h1>The w3-circle Class</h1>
</div> 亲自试一试 »
圆内圆

Hello
W3.CSS!
实例 1
<div class="w3-padding-32 w3-green w3-circle"><img src="img_car.jpg" class="w3-circle" style="width:75%">
</div> 亲自试一试 »
实例 2
<div class="w3-padding-32 w3-green w3-circle"><div class="w3-padding-32 w3-red w3-circle w3-center" style="width:55%">
<p class="w3-xlarge">Hello<br>W3.CSS!</p>
</div>
</div> 亲自试一试 »
0 人点赞过