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

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

a添加hover顯現(xiàn)border,移入導(dǎo)致其他a下移

a添加hover顯現(xiàn)border,移入導(dǎo)致其他a下移

函數(shù)式編程 2018-11-13 10:09:47
<style>a { display:inline-block; width:50px; height:50px; margin-left:20px; background:#CCC;}a:hover { border-bottom:#F00 solid 7px;}</style><body><div style=" width:1000px; height:500px; margin:0 auto;">    <div style=" height:50px;background:#3C9;">        <a></a>        <a></a>        <a></a>        <a></a>        </div>    <div style=" height:300px; margin-top:50px; background:#0F0;">    </div></div>移入其中一個a上面都會導(dǎo)致其他三個下移,這是為嘛
查看完整描述

2 回答

?
largeQ

TA貢獻(xiàn)2039條經(jīng)驗(yàn) 獲得超8個贊

因?yàn)閍在hover狀態(tài)下顯示了7px的下border,此時a的高度是 原來高度+7px  總高度發(fā)生變化.

a { display:inline-block; width:50px; height:50px; margin-left:20px; background:#CCC;}
//改為如下
a { display:inline-block; width:50px; height:43px; margin-left:20px; background:#CCC;border-bottom:#CCC solid 7px;}
即可


查看完整回答
反對 回復(fù) 2018-11-17
  • 2 回答
  • 0 關(guān)注
  • 573 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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