亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

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

老師為什么我的父元素intex-menu沒有被撐開,導致三角形也沒顯示在menu-tips的底部?

老師為什么我的父元素intex-menu沒有被撐開,導致三角形也沒顯示在menu-tips的底部?

慕粉3523303 2016-07-06 16:10:40
/*菜單menu部分*/.index-menu{ position:relative; border-top:4px solid #f34949;?}.index-menu .menu-tips{ position:absolute; left:50%; top:0px; margin-left:-78px; width:156px; height:75px; text-align:center; line-height:65px; color:#fff; background:#f34949;}/*菜單提示標簽*/.index-menu .menu-tips:after{ position:absolute; content:""; left:0; buttom:0; width:0; height:0; border-left:78px solid transparent; border-right:78px solid transparent; border-bottom:10px solid #fff;}
查看完整描述

1 回答

?
被淹死的魚56

TA貢獻1條經驗 獲得超0個贊

試試在父元素的最后添加一個<div style="clear:both;"></div>要寫在父元素里面

查看完整回答
反對 回復 2016-07-06
  • 1 回答
  • 0 關注
  • 1295 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號