我試圖改變活動按鈕的下邊框爲白色,不知道是否因爲我打電話給兩個不同的邊框底部顏色的div。border-bottom在活動時不會改變
.navigation a {
line-height:25px;
}
#navigation {
border-bottom: 1px solid currentColor;
text-decoration: none;
word-wrap: break-word;
padding-top: 10px;
margin-bottom: 15px;
overflow: hidden !important;
white-space: no-wrap;
text-overflow: clip;
height: 26px;
padding-bottom:26px;
}
.navigation a.active-link {
border-style: solid;
border-bottom: 1px solid white;
color: black;
padding:10px;
display: inline-block;
}
<div class="col-xs-12 col-lg-10 col-lg-offset-1">
<div class="navigation" id="navigation">
<a href="/" class="active-link">Show all</a>
<a href="#" >title</a>
<a href="#" >title1</a>
<a href="#" >title2</a>
<a href="#" >title3</a>
<a href="#" >title4</a>
<a href="#" >title5</a>
<a href="#" >title6</a>
<a href="#" >title7</a>
<a href="#" >title8</a>
<a href="#" >title9</a>
<a href="#" >title10</a>
<a href="#" >title11</a>
<a href="#" >title12</a>
<a href="#" >title13</a>
<a href="#" >title14</a>
<a href="#" >title15</a>
<a href="#" >title16</a>
<a href="#" >title17</a>
<a href="#" >title18</a>
<a href="#" >title19</a>
<a href="#" >title20</a>
<a href="#" >title21</a>
<a href="#" >title22</a>
<a href="#" >title23</a>
<a href="#" >title24</a>
</div>
https://jsfiddle.net/akn5r7y5/7/和我想要做到的是有積極和活躍的沒有看起來像這樣http://imgur.com/a/s0ma3
這是什麼'背景邊框:#red;' – 2016-12-06 21:55:04
很抱歉,我的閱讀障礙必須得到的我 – nadermx
請在[MCVE]在這個問題本身,而不是對第三方的所有相關代碼現場。 –