-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0390_form_controls.html
More file actions
43 lines (43 loc) · 1.69 KB
/
0390_form_controls.html
File metadata and controls
43 lines (43 loc) · 1.69 KB
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
<!-- フォームの基本 -->
<!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">
<form class="form-horizontal"> <!-- form-vertical にするだけで縦並びになる -->
<fieldset>
<legend>ちょっと違和感あるけどlegendにフォームのタイトルを書く(下が開きすぎて変じゃないか?)</legend>
<div class="control-group">
<label class="control-label" for="input1">題名</label>
<div class="controls">
<input type="text" id="input1" class="input-xlarge" /><span class="help-inline">横に表示</span>
<p class="help-block">下に表示</p>
</div>
</div>
<div class="control-group">
<label class="control-label" for="textarea1">本文</label>
<div class="controls">
<textarea class="input-xlarge" id="textarea1" rows="3"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label" for="cb1">確認</label>
<div class="controls">
<label class="checkbox">
<input type="checkbox" id="cb1" value="1" />label.checkbox input にしないとずれるので注意
</label>
</div>
</div>
<div class="form-actions">
<input type="submit" class="btn" value="保存" />
<input type="submit" class="btn btn-primary" value="送信" />
</div>
</fieldset>
</form>
</div>
</body>
</html>