W3.CSSラウンドクラス
w3-ラウンド-スモール
w3-ラウンド
w3-ラウンド-ラージ
w3-round-xlarge
w3-round-xxlarge
w3-round- sizeクラスは、HTML要素に丸みを帯びた角を追加します。
クラス | 定義 |
---|---|
w3-ラウンド | 丸められた要素(境界半径)4px |
w3-ラウンド-スモール | 丸められた要素(境界半径)2px |
w3-ラウンド-ミディアム | 丸められた要素(境界半径)4px |
w3-ラウンド-ラージ | 丸められた要素(境界半径)8px |
w3-round-xlarge | 丸められた要素(境界半径)16px |
w3-round-xxlarge | 丸められた要素(境界半径)32px |
例
<div class="w3-round w3-teal">w3-round</div>
サークルクラス
w3-circleクラスは、円の中にコンテンツを表示します。
円の中の画像
例
<img class="w3-circle"
src="img_car.jpg" alt="Car">
Text Inside a Circle
Text inside a circle
Example
<div class="w3-padding-32 w3-red w3-circle w3-center">
<h1>The
w3-circle Class</h1>
</div>
A Circle Inside a Circle
Hello
W3.CSS!
Example 1
<div class="w3-padding-32 w3-green w3-circle">
<img src="img_car.jpg"
class="w3-circle" style="width:75%">
</div>
Example 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>