日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)Bootstrap5教程:Bootstrap5表單浮動標簽

Bootstrap5 表單浮動標簽

默認情況下,標簽內(nèi)容一般顯示在 input 輸入框的上方:

使用浮動標簽,可以在 input 輸入框內(nèi)插入標簽,在單擊 input 輸入框時使它們浮動到上方

Bootstrap 實例

<
div

class
=
"
form-floating mb-3 mt-3
"
>

<
input

type
=
"
text
"

class
=
"
form-control
"

id
=
"
email
"

placeholder
=
"
Enter email
"

name
=
"
email
"
>

<
label

for
=
"
email
"
>
Email
label
>

div
>

<
div

class
=
"
form-floating mt-3 mb-3
"
>

<
input

type
=
"
text
"

class
=
"
form-control
"

id
=
"
pwd
"

placeholder
=
"
Enter password
"

name
=
"
pswd
"
>

<
label

for
=
"
pwd
"
>
Password
label
>

div
>

嘗試一下 ?

注意事項:

文本框

文本框 textarea 也可以有浮動效果:

Bootstrap 實例

<
div

class
=
"
form-floating
"
>

<
textarea

class
=
"
form-control
"

id
=
"
comment
"

name
=
"
text
"

placeholder
=
"
Comment goes here
"
>
textarea
>

<
label

for
=
"
comment
"
>
Comments
label
>

div
>

嘗試一下 ?

選擇框

我們可以在選擇菜單上使用浮動標簽,它將始終顯示在選擇菜單的左上角,不會有點擊浮動效果:

Bootstrap 實例

<
div

class
=
"
form-floating
"
>

<
select

class
=
"
form-select
"

id
=
"
sel1
"

name
=
"
sellist
"
>

<
option
>
1
option
>

<
option
>
2
option
>

<
option
>
3
option
>

<
option
>
4
option
>

select
>

<
label

for
=
"
sel1
"

class
=
"
form-label
"
>
Select list (select one):
label
>

div
>

嘗試一下 ?


分享標題:創(chuàng)新互聯(lián)Bootstrap5教程:Bootstrap5表單浮動標簽
文章起源:http://m.5511xx.com/article/dhdphjj.html