文章詳情頁
css - 想讓border向上移動1px margin-bottom:-1px不好使
瀏覽:139日期:2023-06-25 10:04:47
問題描述
請輸入代碼
#nav { width: 100%; height: .5rem; background: #eee; font-size: .18rem;}#nav ul { /* list-style: none;*/ padding: 0; margin: 0;}#nav ul li { width: 24%; height: .5rem; display: inline-block; line-height: .5rem; text-align: center;}#nav ul li.active { color: #0099FF; border-bottom: 1px solid #0099FF; margin-bottom: -1px;}
問題解答
回答1:不太理解你的需求,你用position試試
標(biāo)簽:
CSS
相關(guān)文章:
1. datetime - Python如何獲取當(dāng)前時間2. python 利用subprocess庫調(diào)用mplayer時發(fā)生錯誤3. html - eclipse 標(biāo)簽錯誤4. python文檔怎么查看?5. python - Pycharm的Debug用不了6. 安全性測試 - nodejs中如何防m(xù)ySQL注入7. javascript - nginx反向代理靜態(tài)資源403錯誤?8. 請問PHPstudy中的數(shù)據(jù)庫如何創(chuàng)建索引9. python - pycharm 自動刪除行尾空格10. javascript - 關(guān)于apply()與call()的問題
排行榜

熱門標(biāo)簽