Jquery-mobile-form-buttons
提供:Dev Guides
jQuery Mobile-フォームボタン
jQuery Mobileは、ニーズに応じてカスタマイズできるボタンスタイルをサポートしています。 <input> 要素は、フォームのボタンをコーディングするために使用されます。 以下は、ボタンのスタイルを変更するために使用される属性です。
Sr.No. | Attribute | Value | Description |
---|---|---|---|
1 | data-corners | true/false | Sets the corner for the buttons. |
2 | data-icon | Different icons | Sets different icon on the button. |
3 | data-iconpos | left/right/bottom/top/notext | Sets the position for the icon on the button. |
4 | data-inline | true/false | Sets the button inline. |
5 | data-mini | true/false | Sets the button small. |
6 | data-shadow | true/false | Sets the shadow for the button. |
例
次の例は、jQuery Mobileでフォームボタンを使用する方法を示しています。
出力
上記のコードがどのように機能するかを確認するために、次の手順を実行してみましょう-
- 上記のHTMLコードを form_buttonsl ファイルとしてサーバーのルートフォルダーに保存します。
- このHTMLファイルをhttp://localhost/form_buttonslとして開くと、次の出力が表示されます。