-
Notifications
You must be signed in to change notification settings - Fork 0
/
0380_form.html
61 lines (61 loc) · 2.71 KB
/
0380_form.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
<!-- フォームのフィールドの上にラベルを表示するには? -->
<!-- form.form-stacked とするだけ -->
<!DOCTYPE html>
<html lang="ja">
<html>
<head>
<meta charset="UTF-8" />
<link href="assets/bootstrap.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">
<h2>navbar-form</h2>
<div class="navbar">
<div class="navbar-inner">
<a class="brand" href="#">Title</a>
<div class="container">
<form action="#" class="navbar-form">
<input type="text" class="input-medium" placeholder="メールアドレス">
<input type="password" class="input-medium" placeholder="パスワード">
<button type="submit" class="btn btn-primary">ログイン</button>
</form>
</div>
</div>
</div>
<h2>navbar-search (ボタンを入れると縦幅が変わってずれるので注意)</h2>
<div class="navbar">
<div class="navbar-inner">
<a class="brand" href="#">Title</a>
<div class="container">
<form class="navbar-search pull-left">
<input type="search" class="search-query" placeholder="検索" />
<!-- <button type="submit" class="btn btn-navbar">ログイン</button> -->
<!-- <input type="submit" class="btn" value="ログイン" /> -->
<!-- <button type="submit" class="btn btn-navbar">ログイン</button> -->
</div>
</div>
</div>
<h2>form-horizontal</h2>
<form class="form-horizontal">
<div class="control-group"><label class="control-label">ラベル</label><div class="controls"><input type="text" /></div></div>
<div class="form-actions"><button type="submit" class="btn btn-primary">送信</button></div>
</form>
<h2>form-vertical</h2>
<form class="form-vertical">
<div class="control-group"><label class="control-label">ラベル</label><div class="controls"><input type="text" /></div></div>
<button type="submit" class="btn btn-primary">送信</button>
</form>
<h2>form-search input.search-query</h2>
<form class="well form-search">
<input type="search" class="search-query input-medium" placeholder="検索語" />
<button type="submit" class="btn btn-primary">検索</button>
</form>
<h2>form-inline</h2>
<form class="well form-inline">
<input type="text" class="input-medium" placeholder="メールアドレス">
<input type="password" class="input-medium" placeholder="パスワード">
<button type="submit" class="btn btn-primary">ログイン</button>
</form>
</div>
</body>
</html>