Foundation ボタン


ボタンスタイル

Foundation は6種類のボタンスタイルを提供しています。.buttonクラスは青色のボタンを作成し、内側の余白(パディング)が付きます。異なる色のボタンクラスは次のとおりです:.secondary, .success, .info, .warning 或 .alert:

例

<button type="button" class="button">Default</button>
<button type="button" class="button secondary">Secondary</button>
<button type="button" class="button success">Success</button>
<button type="button" class="button info">Info</button>
<button type="button" class="button warning">Warning</button>
<button type="button" class="button alert">Alert</button>

試してみる »

ボタンクラスは使用できます<a>, <button>、または<input>要素:

例

<a href="#" class="button info" role="button">Link Button</a>
<button type="button" class="button info">Button</button>
<input type="button" class="button info" value="Input Button">
<input type="submit" class="button info" value="Submit Button">

試してみる »

Note なぜ a タグの href を # に設定するのですか?

リンクをクリックして "404" ページにジャンプしたくない場合は、a タグの href を # に設定できます。

ボタンサイズ

私たちは使用できます.large, .small 或 .tinyクラスでボタンサイズを設定します:

例

<button type="button" class="button large">Large</button>
<button type="button" class="button">Default</button>
<button type="button" class="button small">Small</button>
<button type="button" class="button tiny">Tiny</button>

試してみる »

角丸ボタン

使用できます.radiusと.roundクラスで角丸ボタンを設定します:

例

<button type="button" class="button">Default Button</button>
<button type="button" class="button radius">Radius Button</button>
<button type="button" class="button round">Round Button</button>

試してみる »

拡張ボタン

使用できます.expandクラスでボタンの幅を 100% に設定します:

例

<button type="button" class="button">Default Button</button>
<button type="button" class="button expand">Expanded Button</button>

試してみる »

無効ボタン

使用できます.disabledクラスでボタンをクリック不可に設定します:

例

<button type="button" class="button">Default Button</button>
<button type="button" class="button disabled">Disabled Button</button>

試してみる »
その他の拡張