2013-03-06 128 views
0

我沒有在CSS很多經驗,我希望能找到幫助這裏:)標籤CSS修改

我的博客支撐片的元素,這是它的外觀

current tabs in my blog

我試圖刪除圍繞標籤內容的左右邊界,使它看起來像這樣

所需的輸出(標籤邊框(水平)線跨頁擴展兩個方向)

enter image description here

/* Tabs 
====================================*/ 
.tabs-nav { 
list-style: none; 
margin: 0; 
overflow: hidden; 
padding: 0; 
width: 100%; 
} 

.tabs-nav li { 
float: left; 
line-height: 38px; 
overflow: hidden; 
padding: 0; 
position: relative; 

} 

.tabs-nav li a { 
background-color: #f8f8f8; 
border: 1px solid #e0e0e0; 
border-right: none; 
color: #888; 
font-weight: 500; 
display: block; 
letter-spacing: 0; 
outline: none; 
padding: 0 20px; 
text-decoration: none; 
-webkit-transition: all 200ms ease-in-out; 
-moz-transition: all 200ms ease-in-out; 
-o-transition: all 200ms ease-in-out; 
-ms-transition: all 200ms ease-in-out; 
transition: all 200ms ease-in-out; 
} 

.tabs-nav li:first-child a { border-left: 1px solid #e0e0e0; } 
.tabs-nav li:last-child a { border-right: 1px solid #e0e0e0; } 

.tabs-nav li.active a { color: #333; font-weight: 500; } 
.tabs-nav li.active i:before { color: #555; } 

.tabs-nav li i:before { color: #909090; } 
.tabs-nav li span { margin-left: -7px; } 
.tabs-nav li.active a i {opacity: 1; filter: alpha(opacity=100);} 
.tabs-nav li i {opacity: 0.64; filter: alpha(opacity=64); margin: 10px 0 0 0; } 

.tabs-nav li a:hover { background: #fff; } 

.tabs-nav li.active a { 
background: #fff; 
border-bottom: 1px solid #fff; 
} 

.tab-content {padding: 20px;} 
.shop-page .tab-content table p, 
.tab-content p { margin: 0px;} 
.shop-page .tab-content p { 
margin-bottom: 20px; 
} 
.tabs-container { 
border: 1px solid #e0e0e0;; 
margin: -1px 0 20px; 
overflow: hidden; 
width: 100%; 
line-height: 21px; 
-webkit-box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.03); 
box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.03); 
} 
+1

請張貼相關的HTML。和小提琴。 – 2013-03-06 05:12:45

+1

所有我看到的是CSS ..任何HTML?一個jsfiddle很好 – abbood 2013-03-06 05:16:13

+0

您可以使用的替代方法 - http://twitter.github.com/bootstrap/javascript.html#tabs,相關結果需要HTML;沒有Html無法提供幫助。 – Manoj 2013-03-06 05:18:43

回答

0

更改爲:

/* Tabs 
====================================*/ 
.tabs-nav { 
list-style: none; 
margin: 0; 
overflow: hidden; 
padding: 0; 
width: 100%; 
} 

.tabs-nav li { 
float: left; 
line-height: 38px; 
overflow: hidden; 
padding: 0; 
position: relative; 

} 

.tabs-nav li a { 
background-color: #f8f8f8; 
border: 1px solid #e0e0e0; 
border-right: none; 
color: #888; 
font-weight: 500; 
display: block; 
letter-spacing: 0; 
outline: none; 
padding: 0 20px; 
text-decoration: none; 
-webkit-transition: all 200ms ease-in-out; 
-moz-transition: all 200ms ease-in-out; 
-o-transition: all 200ms ease-in-out; 
-ms-transition: all 200ms ease-in-out; 
transition: all 200ms ease-in-out; 
} 

.tabs-nav li:first-child a { border-left: 1px solid #e0e0e0; } 
.tabs-nav li:last-child a { border-right: 1px solid #e0e0e0; } 

.tabs-nav li.active a { color: #333; font-weight: 500; } 
.tabs-nav li.active i:before { color: #555; } 

.tabs-nav li i:before { color: #909090; } 
.tabs-nav li span { margin-left: -7px; } 
.tabs-nav li.active a i {opacity: 1; filter: alpha(opacity=100);} 
.tabs-nav li i {opacity: 0.64; filter: alpha(opacity=64); margin: 10px 0 0 0; } 

.tabs-nav li a:hover { background: #fff; } 

.tabs-nav li.active a { 
background: #fff; 
border-bottom: 1px solid #fff; 
} 

.tab-content {padding: 20px;} 
.shop-page .tab-content table p, 
.tab-content p { margin: 0px;} 
.shop-page .tab-content p { 
margin-bottom: 20px; 
} 
.tabs-container { 
border-top-width:1px; 
border-right-width:0px; 
border-bottom-width:0px; 
border-left-width:0px; 
margin: -1px 0 20px; 
overflow: hidden; 
width: 100%; 
line-height: 21px; 
} 
+0

它實際上工作!謝謝 – Deano 2013-03-06 12:58:20