第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

為什么父元素設(shè)置relative,子元素為absolute,定位卻根據(jù)body(body沒有設(shè)置position)

<div?class="login">

?<div?class="log-input">

??<input?type="text"?name=""><label>郵箱/手機(jī)號(hào)/用戶名</label>

??<input?type="password"?name=""><label>請(qǐng)輸入密碼</label>

?<div>

?<div>

??<i?class="square"></i>

??<span?class="next">下次自動(dòng)登錄</span>

??<a?href=""?class="forget">忘記密碼?</a>

?</div>

?<div>

??<i?class="entry"></i>

??<i?class="register"></i>

?</div>

</div>
.login?{
?background:?#ebf3fa;?
?width:?250px;
?height:?350px;
?border:?1px?solid?#bbb;
}
.log-input?{
?width:?200px;
?margin:0?auto;?
?}
.log-input?input{
?width:?200px;
?height:?30px;
????margin:5px?0;
????position:?relative;?
}
.log-input?label?{
??color:?red;
??position:?absolute;
??top:?20px;
??z-index:?10;
}
.next?{
?font-size:?14px;
}

top:20px;不是根據(jù)input 來定位的

正在回答

1 回答

.log-input?input和.log-input?label

二者不是父子關(guān)系,二者是兄弟關(guān)系啊。另外感覺你label標(biāo)簽的用法也有點(diǎn)問題。。。

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

為什么父元素設(shè)置relative,子元素為absolute,定位卻根據(jù)body(body沒有設(shè)置position)

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)