W3.CSS Icons

❮ 前章へ 次章へ ❯

アイコン・ライブラリ

W3.CSS では、次のようなアイコンライブラリを使用することができます:


アイコンの使用

アイコンを使用するには、HTML <i> 要素のクラスにアイコンの名前を追加するだけです。

アイコンのサイズを制御するには、アイコンの font-size プロパティを変更するか、w3-size クラスを使用します:


Font Awesome アイコン


fa fa-home

fa fa-bars

fa fa-arrow-left

fa fa-arrow-right

fa fa-search

fa fa-close

fa fa-refresh

fa fa-trash

fa fa-male

fa fa-car

fa fa-truck

fa fa-plane

<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
<body>

<i class="fa fa-cloud"></i>
<i class="fa fa-cloud w3-large"></i>
<i class="fa fa-cloud w3-xlarge"></i>
<i class="fa fa-cloud w3-xxlarge"></i>
<i class="fa fa-cloud w3-xxxlarge"></i>
<i class="fa fa-cloud w3-text-teal" style="font-size:64px"></i>

</body>
</html>
Try It Yourself ❯

アイコンの完全なリストについては、アイコンリファレンスをご覧ください


Google Material Design アイコン

home
home
menu
menu
arrow_back
arrow_back
arrow_forward
arrow_forward
search
search
close
close
refresh
refresh
delete
delete
person
person
directions_car
directions_car
local_shipping
local_shipping
local_airport
local_airport

<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<body>

<i class="material-icons">cloud</i>
<i class="material-icons w3-large">cloud</i>
<i class="material-icons w3-xlarge">cloud</i>
<i class="material-icons w3-xxlarge">cloud</i>
<i class="material-icons w3-xxxlarge">cloud</i>
<i class="material-icons w3-text-teal" style="font-size:64px">cloud</i>

</body>
</html>
Try It Yourself ❯

Bootstrap アイコン


home

menu-hamburger

arrow_back

arrow_forward


search

remove

refresh

trash


user

file

print

plane

<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<body>

<i class="glyphicon glyphicon-cloud"></i>
<i class="glyphicon glyphicon-cloud w3-large"></i>
<i class="glyphicon glyphicon-cloud w3-xlarge"></i>
<i class="glyphicon glyphicon-cloud w3-xxlarge"></i>
<i class="glyphicon glyphicon-cloud w3-xxxlarge"></i>
<i class="glyphicon glyphicon-cloud w3-text-teal" style="font-size:64px"></i>

</body>
</html>
Try It Yourself ❯

❮ 前章へ 次章へ ❯