-
Notifications
You must be signed in to change notification settings - Fork 0
/
style-nocss.html
executable file
·172 lines (155 loc) · 5.79 KB
/
style-nocss.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap入門</title>
<!-- Bootstrap -->
<!-- <link href="css/bootstrap.min.css" rel="stylesheet"> -->
<!-- <script src="js/jquery-1.11.1.min.js" defer></script> -->
<!-- <script src="js/bootstrap.min.js" defer></script> -->
<style>
pre {
font-size: large;
}
</style>
</head>
<!-- <body> -->
<body style="padding-top: 50px;">
<!-- ページ上部のナビゲーション -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<!-- ページ幅が狭い場合の折りたたみメニューボタン -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#collapse-navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- 一番左上のタイトル文字列 -->
<a href="#" class="navbar-brand">Bootstrap入門</a>
</div>
<!-- ナビゲーション -->
<div class="collapse navbar-collapse" id="collapse-navbar">
<ul class="nav navbar-nav">
<li class="" ><a href="index.html" >Overview</a></li>
<li class="active"><a href="#" >Style</a></li>
<li class="" ><a href="ui-components.html">UI Components</a></li>
<li class="" ><a href="responsive.html" >Responsive</a></li>
</ul>
</div>
</div>
</nav>
<!-- タイトル -->
<div id="title" class="jumbotron">
<div class="container">
<div class="col-xs-12">
<h1>Bootstrapのスタイル</h1>
<h3>CSSを読み込むだけでカッコよく</h3>
</div>
</div>
</div>
<div> </div><div> </div>
<div class="container">
<div class="row">
<div class="col-xs-12">
<div id="css">
<h2>CSSを読み込む</h2>
<pre><link href="css/bootstrap.min.css" rel="stylesheet"></pre>
<h3>
<ul>
<li><a href="style-nocss.html">読み込まないと…</a>
</ul>
</h3>
</div>
<div> </div><div> </div>
<div id="theme">
<h2>テーマ</h2>
<h3>
<ul>
<li>テーマのCSSを読み込むだけで、配色等をがらりと変更できる<br>
<li>色々なテーマが公開されている (無料 or 有料)
<ul>
<li><a href="http://bootswatch.com/">Bootswatch: Free themes for Bootstrap</a>
</ul><br>
<li><a href="style-theme-default.html">Bootstrap標準付属テーマ</a>
<li><a href="style-theme-darkly.html">Darkly</a>
<li><a href="style-theme-united.html">United</a>
</ul>
</h3>
</div>
<div> </div><div> </div>
<div id="theme">
<h2>クラスの指定</h2>
<h3>
<ul>
<li><mark><mark></mark>, <strong><strong></strong>, <code><code></code>等は
タグで囲むだけでカッコよくなる<br>
<li>他は、普通のHTMLにBootstrapのクラスを指定していくことで見栄えを調整<br>
</ul>
</h3>
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<h4>普通のボタン</h4>
<pre><button></pre>
<button>ボタン</button>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<h4>Bootstrapのボタン</h4>
<pre><button class="btn btn-default"></pre>
<button class="btn btn-default">ボタン</button>
</div>
</div><!-- .row -->
<div> </div><div> </div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<h4>普通のテーブル</h4>
<pre><table></pre>
<table>
<tr><th>a<th>b<th>c</tr>
<tr><td>1<td>2<td>3</tr>
<tr><td>4<td>5<td>6</tr>
</table>
※デフォルトは枠なしになる
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<h4>Bootstrapのテーブル</h4>
<pre><table class="table"></pre>
<table class="table">
<tr><th>a<th>b<th>c</tr>
<tr><td>1<td>2<td>3</tr>
<tr><td>4<td>5<td>6</tr>
</table>
</div>
</div><!-- .row -->
<div> </div><div> </div>
<div>
<h4><code><span></code>を使用したラベル</h4>
<pre><span class="label label-default">Default</span>
<span class="label <span class="text-primary">label-primary</span>">Primary</span>
<span class="label <span class="text-success">label-success</span>">Success</span>
<span class="label <span class="text-info">label-info</span>" >Info</span>
<span class="label <span class="text-warning">label-warning</span>">Warning</span>
<span class="label <span class="text-danger">label-danger</span>" >Danger</span></pre>
<span class="label label-default">Default</span>
<span class="label label-primary">Primary</span>
<span class="label label-success">Success</span>
<span class="label label-info" >Info</span>
<span class="label label-warning">Warning</span>
<span class="label label-danger" >Danger</span>
</div>
</div>
<div> </div><div> </div>
<div class="pull-right">
<a href="ui-components.html" class="btn btn-lg btn-primary"><strong>UI Components »</strong></a>
</div>
</div> <!-- .col-xs-12 -->
</div> <!-- .row -->
</div> <!-- .container -->
</body>
</html>
<!-- Local variables: -->
<!-- indent-tabs-mode: nil -->
<!-- End:-->