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

為了賬號安全,請及時綁定郵箱和手機立即綁定

底邊框的問題

為什么我在li.select中設(shè)置border-bottom為none或0不能完全去除底邊框,而是還存在一條細(xì)線呢(如下圖)?用border-bottom-color:#fff就沒問題.

http://img1.sycdn.imooc.com//5961c1840001a2da05950219.jpg

*{
	margin:0;
	padding:0;
	list-style:none;
	font-size:12px;
	text-decoration:none;
}
#notice{

	width:298px;
	height:98px;
	margin:10px;
	border:1px?solid?#f0f0f0;
}
.notice-title{
	position:relative;
	height:27px;
	overflow:hidden;
	background-color:#f7f7f7;
}
.notice-title?ul{
	position:absolute;
	left:-1px;
	width:300px;

}
.notice-title?li{
	float:left;
	width:58px;
	height:26px;??/*26+1=27*/
	line-height:26px;
	font-size:16px;
	padding:0?1px;
	text-align:center;
	border-bottom:1px?solid?#f0f0f0;
}
.notice-title?a:link,.notice-title?a:visited{
	color:black;
}
.notice-title?a:hover{
	color:orange;
}
.notice-title?li.select{
	border-bottom:none;
	border-left:1px?solid?#f0f0f0;
	border-right:1px?solid?#f0f0f0;
	padding:0;

	background-color:#fff;
}


正在回答

2 回答

.notice-title?li.select{
????border-bottom:none;
}

這里的下邊框不能直接設(shè)置none,因為此時li標(biāo)簽的高度是26px,而父元素祖先原色.notice-title的高度是27px,設(shè)置為none之后,此時你看到的其實不是下邊框,而是祖先元素的背景顏色,所以這時候只需要把下邊框的背景顏色設(shè)置為#FFF即可,而不是清楚下邊框。

.notice-title?li.select{
????border-bottom-color:#FFF;
}


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

暮女神 提問者

非常感謝!
2017-07-18 回復(fù) 有任何疑惑可以回復(fù)我~

.notice-title li.select{
? ?border-bottom:none;
}

這里的下邊框不能直接設(shè)置none,因為此時li標(biāo)簽的高度是26px,而祖先元素.notice-title的高度是27px,設(shè)置為none之后,此時你看到的其實不是下邊框,而是祖先元素的背景顏色,所以這時候只需要把下邊框的背景顏色設(shè)置為#FFF即可,而不是清楚下邊框。

.notice-title li.select{
? ?border-bottom-color:#FFF;
}


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

舉報

0/150
提交
取消

底邊框的問題

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

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

幫助反饋 APP下載

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

公眾號

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