--- title: Twitter BootstrapでのFormの書き方 tags: [] categories: ["Web", "CSS", "Bootstrap"] date: 2011-11-23T05:42:39Z updated: 2011-11-23T05:42:39Z --- **最新のBootstrap2.0では書き方が変わりましたので↓のは使えません。。** 代わりにこちらの[ツール][1]をどうぞ(サンプルが仕様ですw)。
Bootstrapの[form][2]の書き方メモ。bootstrapのページだとソース見ながらじゃないと分かりにくいのでまとめる。 ### テキストフィールド #### コード
#### 表示
### セレクト #### コード
#### 表示
### マルチセレクト #### コード
#### 表示
### 編集不可なテキストフィールド #### コード
Some value here
#### 表示
Some value here
### 使用不可なテキストフィールド #### コード
#### 表示
### 使用不可なテキストエリア #### コード
#### 表示
### エラーのあるテキストフィールド #### コード
Small snippet of help text
#### 表示
Small snippet of help text
### OKなテキストフィールド #### コード
Success!
#### 表示
Success!
### 警告のあるテキストフィールド #### コード
Ruh roh!
#### 表示
Ruh roh!
### 先頭に文字があるテキストフィールド #### コード
@
Here's some help text
#### 表示
@
Here's some help text
### 先頭にチェックボックスのあるテキストフィールド #### コード
#### 表示
### 末尾にチェックボックスのあるテキストフィールド #### コード
#### 表示
### ファイル #### コード
#### 表示
### リスト形式のチェックボックス #### コード
Note: Labels surround all the options for much larger click areas and a more usable form.
#### 表示
Note: Labels surround all the options for much larger click areas and a more usable form.
### 日付範囲 #### コード
to All times are shown as Pacific Standard Time (GMT -08:00).
#### 表示
to All times are shown as Pacific Standard Time (GMT -08:00).
### テキストエリア #### コード
Block of help text to describe the field above if need be.
#### 表示
Block of help text to describe the field above if need be.
### リスト形式のラジオボックス #### コード
#### 表示
### ボタン #### コード
 
#### 表示
 
[1]: http://st.ik.am/form-maker/form/ [2]: http://twitter.github.com/bootstrap/#forms