国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

ホームページ ウェブフロントエンド jsチュートリアル ブートストラップ ドロップダウン プラグイン ドロップダウンの使用上のヒント

ブートストラップ ドロップダウン プラグイン ドロップダウンの使用上のヒント

Apr 16, 2018 pm 04:54 PM
bootstrap スキル

今回は、Bootstrapドロップダウンプラグインを使用する際のヒントと、Bootstrapドロップダウンプラグインドロップダウンを使用する際の注意事項(xiàng)について説明します。以下は実際的なケースです。

ドロップダウン メニュー.ドロップダウンの特定の使用法

.dropdown <ドロップダウン メニュートリガーボタン+ドロップダウン メニューul>

.dropdown ラッピングレイヤー

.dropdown-toggle ドロップダウン メニュー トリガー

data-toggle="dropdown カスタム 屬性 を js

に関連付けることができます .dropdown-menu ドロップダウン メニュー

具體例:

<p class="dropdown">
?<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
??Dropdown
??<span class="caret"></span>
?</button>
?<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Action</a></li>
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Another?action</a></li>
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Something?else?here</a></li>
??<li role="separator" class="pider"></li>
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Separated?link</a></li>
?</ul>
</p>

メニューをデフォルトで開くようにしたい場合は、.open クラスを追加する必要があります

<p class="dropdown open">
?<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
??Dropdown
??<span class="caret"></span>
?</button>
?<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Action</a></li>
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Another?action</a></li>
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Something?else?here</a></li>
??<li role="separator" class="pider"></li>
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Separated?link</a></li>
?</ul>
</p>

.dropup ポップアップメニュー

ドロップダウン メニューの親要素に .dropup クラスを設(shè)定すると、メニューをポップアップさせることができます (デフォルトはポップアップです)

<p class="dropup">
?<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
??Dropup
??<span class="caret"></span>
?</button>
?<ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Action</a></li>
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Another?action</a></li>
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Something?else?here</a></li>
??<li role="separator" class="pider"></li>
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Separated?link</a></li>
?</ul>
</p>

1. 配置: デフォルトの左揃え

右揃え: .dropdown-menu-right クラスを .dropdown-menu に追加するだけです

注: 親の位置に基づいて配置されます

ドロップダウン メニューをドロップダウン メニュー トリガーの右端に揃えるにはどうすればよいですか?次に、.btn ブロック クラスをドロップダウン メニューのトリガー ボタンに追加する必要があります

<p class="dropup">
?<button class="btn btn-default dropdown-toggle btn-block" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
??Dropup
??<span class="caret"></span>
?</button>
?<ul class="dropdown-menu dropdown-menu-right " aria-labelledby="dropdownMenu2">
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Action</a></li>
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Another?action</a></li>
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Something?else?here</a></li>
??<li role="separator" class="pider"></li>
??<li><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >Separated?link</a></li>
?</ul>
</p>

2. ドロップダウン メニューのドロップダウン ヘッダーのタイトル

ドロップダウン メニューにタイトルを追加して、アクションのグループを識別できます。

ドロップダウン メニューのタイトルを中央に配置したい場合は、.text-center クラスを追加する必要があります

<ul class="dropdown-menu" aria-labelledby="dropdownMenu3">
?...
?<li class="dropdown-header text-center">Dropdown?header</li>
?...
</ul>

3. 分割線: .pider

複數(shù)のリンクをグループ化するには、ドロップダウン メニューに分割線を追加します。

りー

4. 無効メニュー: 無効

.disabled クラスをドロップダウン メニューの

  • 要素に追加すると、対応するメニュー項(xiàng)目が無効になります。

    りー

    注:

    aria-haspopup="true" aria-expanded="true" スクリーン リーダーを使用する必要がある特別なユーザー向けに設(shè)定します

    id="dropdownMenu1" aria-labelledby="dropdownMenu1" ID を使用してトリガーをドロップダウン メニューに関連付けます ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

    この記事の事例を読んだ後、あなたはその方法を習(xí)得したと思います。さらに興味深い情報(bào)については、php 中國語 Web サイトの他の関連記事に注目してください。

    推奨読書:

    Bootrap+Vue は Baidu 検索インターフェース機(jī)能を模倣して実裝します

    Node.js 環(huán)境変數(shù) process.env の使用方法の詳細(xì)な説明

    エクスポートとモジュールの使用方法の詳細(xì)な説明Node.js と ES6 の .exports

    以上がブートストラップ ドロップダウン プラグイン ドロップダウンの使用上のヒントの詳細(xì)內(nèi)容です。詳細(xì)については、PHP 中國語 Web サイトの他の関連記事を參照してください。

  • このウェブサイトの聲明
    この記事の內(nèi)容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰屬します。このサイトは、それに相當(dāng)する法的責(zé)任を負(fù)いません。盜作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡(luò)ください。

    ホットAIツール

    Undress AI Tool

    Undress AI Tool

    脫衣畫像を無料で

    Undresser.AI Undress

    Undresser.AI Undress

    リアルなヌード寫真を作成する AI 搭載アプリ

    AI Clothes Remover

    AI Clothes Remover

    寫真から衣服を削除するオンライン AI ツール。

    Clothoff.io

    Clothoff.io

    AI衣類リムーバー

    Video Face Swap

    Video Face Swap

    完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。

    ホットツール

    メモ帳++7.3.1

    メモ帳++7.3.1

    使いやすく無料のコードエディター

    SublimeText3 中國語版

    SublimeText3 中國語版

    中國語版、とても使いやすい

    ゼンドスタジオ 13.0.1

    ゼンドスタジオ 13.0.1

    強(qiáng)力な PHP 統(tǒng)合開発環(huán)境

    ドリームウィーバー CS6

    ドリームウィーバー CS6

    ビジュアル Web 開発ツール

    SublimeText3 Mac版

    SublimeText3 Mac版

    神レベルのコード編集ソフト(SublimeText3)

    VueでBootstrapの使用方法 VueでBootstrapの使用方法 Apr 07, 2025 pm 11:33 PM

    vue.jsでBootstrapを使用すると、5つのステップに分かれています。ブートストラップをインストールします。 main.jsにブートストラップをインポートしますブートストラップコンポーネントをテンプレートで直接使用します。オプション:カスタムスタイル。オプション:プラグインを使用します。

    ブートストラップにスプリットラインを書く方法 ブートストラップにスプリットラインを書く方法 Apr 07, 2025 pm 03:12 PM

    ブートストラップスプリットラインを作成するには2つの方法があります。タグを使用して、水平方向のスプリットラインを作成します。 CSS Borderプロパティを使用して、カスタムスタイルのスプリットラインを作成します。

    ブートストラップの日付を確認(rèn)する方法 ブートストラップの日付を確認(rèn)する方法 Apr 07, 2025 pm 03:06 PM

    ブートストラップの日付を確認(rèn)するには、次の手順に従ってください。必要なスクリプトとスタイルを紹介します。日付セレクターコンポーネントを初期化します。 Data-BV-Date屬性を設(shè)定して、検証を有効にします。検証ルール(日付形式、エラーメッセージなどなど)を構(gòu)成します。ブートストラップ検証フレームワークを統(tǒng)合し、フォームが送信されたときに日付入力を自動(dòng)的に検証します。

    ブートストラップの日付を表示する方法 ブートストラップの日付を表示する方法 Apr 07, 2025 pm 03:03 PM

    回答:ブートストラップの日付ピッカーコンポーネントを使用して、ページで日付を表示できます。手順:ブートストラップフレームワークを紹介します。 HTMLで日付セレクター入力ボックスを作成します。ブートストラップは、セレクターにスタイルを自動(dòng)的に追加します。 JavaScriptを使用して、選択した日付を取得します。

    ブートストラップ検索バーを取得する方法 ブートストラップ検索バーを取得する方法 Apr 07, 2025 pm 03:33 PM

    ブートストラップを使用して検索バーの値を取得する方法:検索バーのIDまたは名前を決定します。 JavaScriptを使用してDOM要素を取得します。要素の値を取得します。必要なアクションを?qū)g行します。

    ブートストラップボタンの使用方法 ブートストラップボタンの使用方法 Apr 07, 2025 pm 03:09 PM

    ブートストラップボタンの使用方法は?ブートストラップCSSを?qū)毪筏匹堀骏笠丐蜃鞒嗓?、ブートストラップボタンクラスを追加してボタンテキストを追加します

    Web開発者向けの10の最新ツール Web開発者向けの10の最新ツール May 07, 2025 pm 04:48 PM

    Web開発デザインは有望なキャリア分野です。ただし、この業(yè)界は多くの課題にも直面しています。より多くの企業(yè)やブランドがオンライン市場に目を向けるにつれて、Web開発者は自分のスキルを?qū)g証し、キャリアを成功させる機(jī)會(huì)があります。ただし、Web開発の需要が増え続けているため、開発者の數(shù)も増加しており、その結(jié)果、ますます激しい競爭が発生しています。しかし、才能と意志があれば、ユニークなデザインやアイデアを作成する新しい方法をいつでも見つけることができるのはエキサイティングです。 Web開発者として、新しいツールとリソースを探し続ける必要があるかもしれません。これらの新しいツールとリソースは、仕事をより便利にするだけでなく、仕事の品質(zhì)を向上させるため、より多くのビジネスと顧客を獲得するのに役立ちます。 Web開発の傾向は絶えず変化しています。

    ブートストラップのフレームワークをセットアップする方法 ブートストラップのフレームワークをセットアップする方法 Apr 07, 2025 pm 03:27 PM

    Bootstrapフレームワークをセットアップするには、次の手順に従う必要があります。1。CDNを介してブートストラップファイルを參照してください。 2。獨(dú)自のサーバーでファイルをダウンロードしてホストします。 3。HTMLにブートストラップファイルを含めます。 4.必要に応じてSASS/LESSをコンパイルします。 5。カスタムファイルをインポートします(オプション)。セットアップが完了したら、Bootstrapのグリッドシステム、コンポーネント、スタイルを使用して、レスポンシブWebサイトとアプリケーションを作成できます。

    See all articles