如何使用css删除chrome中选定选项卡的下边框

时间:2014-09-04 12:30:34

标签: css google-chrome

This image is regarding the tabs which i see on google chrome which needs to be fixed. like, the selected tab should not have the bottom line

在互联网资源管理器中,我们得到了一条直线。在我们的情况下,我们得到了扭曲的线条,所有浏览器的其余部分都有所需的情况。它由第一张图片显示。请告诉一些代码来实现这一点,因为我非常需要它。这是代码:

ul#tabs li a { 
    color: #a09b95;
    padding: 6px 15px 7px 15px;
    padding: 6px 15px 5px 15px\9;           /* IE-only fix */
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #c9c3ba;
    border-right: 1px solid #c9c3ba;
/*  background-color: #ffffff; */
    background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#f3efeb)); /* Saf4+, Chrome */
    background: -webkit-linear-gradient(top, #ffffff, #f3efeb); /* Chrome 10+, Saf5.1+, iOS 5+ */
    background:    -moz-linear-gradient(top, #ffffff, #f3efeb); /* FF3.6+ */
    background:     -ms-linear-gradient(#FFFFFF, #F3EFEB); /* IE 8 */
    background:      -o-linear-gradient(top, #ffffff, #f3efeb); /* Opera 11.10+ */
    background:         linear-gradient(to bottom, #ffffff, #f3efeb); /* IE9+ */
    -pie-background:    linear-gradient(#FFFFFF, #F3EFEB); /* IE 6-7 via CSS3Pie */
    behavior: url("http://ocw5.mit.edu/styles/pie/PIE.php");
}   


ul#tabs li a.selected {
    color: #b30838;
    border-bottom: 1px solid #fff;
    background-color: #fff;
    background: none;
    -pie-background: none;
    behavior: url("http://ocw5.mit.edu/styles/pie/PIE.php");
}


/* Chrome/Safari-only CHP tab border fix */
@media screen and (-webkit-min-device-pixel-ratio:0) {

    ul#tabs {
        margin: 19px 0 -1px 0;
        outline: 0;
    }

}

1 个答案:

答案 0 :(得分:0)

试试这个:

ul#tabs li {margin-bottom: -1px;}