2015-12-11 30 views
0

z-index在Chrome浏览器中不起作用,它弹出到容器后面。如果我更改菜单的z-index,则“链接按钮”可以点击。z索引不在铬浏览器中工作?

$(function() { 
 
     $('.ui-323 ul.ui-nav > li').tooltip(); 
 
    }); 
 

 
    $(document).ready(function() { 
 

 
     $(".ui-323 ul.ui-nav > li > a").click(function(e) { 
 
     e.preventDefault(); 
 
     if (!($(this).parents(".ui-323").hasClass("active"))) { 
 
      //$(this).parents(".ui-323").addClass("active"); \t \t //Add Class Active 
 
     } else { 
 
      $(this).parents(".ui-323").removeClass("active"); //Remove Class Active 
 
     } 
 
     }); 
 

 
     $(".ui-323 ul.ui-nav > li > a").mouseleave(function(e) { 
 
     e.preventDefault(); 
 
     $(this).parents(".ui-323").addClass("active"); 
 
     }); 
 
    });
body { 
 
\t color: #666666; 
 
\t font-size: 13px; 
 
\t line-height: 23px; 
 
\t background: #fff; 
 
\t font-family: 'Open Sans', sans-serif; 
 
\t -webkit-font-smoothing: antialiased; 
 
} 
 
.tab-content{z-index: 999; 
 
position: relative;} 
 
.bg_ctr{ 
 
     height: 200px; 
 
     position: relative; 
 
    width: 65%; 
 
    float: left; 
 
    margin-top: 40px; 
 
    margin-left: 133px; 
 
    background-color: white; 
 
    border: 1px solid #C7C7C7; 
 
    
 
} 
 
h1, 
 
h2, 
 
h3, 
 
h4, 
 
h5, 
 
h6 { 
 
\t color: #666; 
 
\t font-family: 'Open Sans', sans-serif; 
 
\t font-weight: 600; 
 
\t margin: 0px 0px; 
 
\t padding: 0px; 
 
} 
 
h1 { 
 
\t font-size: 30px; 
 
\t line-height: 45px; 
 
} 
 
h2 { 
 
\t font-size: 25px; 
 
\t line-height: 40px; 
 
} 
 
h3 { 
 
\t font-size: 22px; 
 
\t line-height: 37px; 
 
} 
 
h4 { 
 
\t font-size: 18px; 
 
\t line-height: 33px; 
 
} 
 
h5 { 
 
\t font-size: 15px; 
 
\t line-height: 30px; 
 
} 
 
h6 { 
 
\t font-size: 13px; 
 
\t line-height: 28px; 
 
} 
 
p { 
 
\t margin: 2px 0px; 
 
\t padding: 0px; 
 
\t margin-bottom:5px; 
 
\t line-height:28px; 
 
} 
 
a{ 
 
\t text-decoration: none; 
 
\t color: #777; 
 
} 
 
a:hover,a:active,a:focus { 
 
\t outline: 0; 
 
\t text-decoration: none; 
 
\t color: #999; 
 
} 
 
hr { 
 
\t margin: 10px 0px; 
 
\t padding: 0px; 
 
\t border-top: 0px; 
 
\t border-bottom: 1px solid #eee; 
 
} 
 
:focus { 
 
\t outline:none; 
 
} 
 
::-moz-focus-inner { 
 
\t border:0; 
 
} 
 
/* Text color classes */ 
 
.white { 
 
    color: #ffffff !important; 
 
} 
 
.grey { 
 
    color: #eeeeee !important; 
 
} 
 
.black { 
 
    color: #555555 !important; 
 
} 
 
.red { 
 
    color: #f75353 !important; 
 
} 
 
.green { 
 
    color: #51d466 !important; 
 
} 
 
.lblue { 
 
    color: #32c8de !important; 
 
} 
 
.blue { 
 
    color: #609cec !important; 
 
} 
 
.orange { 
 
    color: #f78153 !important; 
 
} 
 
.yellow { 
 
    color: #fcd419 !important; 
 
} 
 
.purple { 
 
    color: #cb79e6 !important; 
 
} 
 
.rose { 
 
    color: #ff61e7 !important; 
 
} 
 
.brown { 
 
    color: #d08166 !important; 
 
} 
 
/* Background color classes */ 
 
.bg-white { 
 
    background-color: #ffffff !important; 
 
} 
 
.bg-grey { 
 
    background-color: #eeeeee !important; 
 
} 
 
.bg-black { 
 
    background-color: #555555 !important; 
 
} 
 
.bg-red { 
 
    background-color: #f75353 !important; 
 
} 
 
.bg-green { 
 
    background-color: #51d466 !important; 
 
} 
 
.bg-lblue { 
 
    background-color: #32c8de !important; 
 
} 
 
.bg-blue { 
 
    background-color: #609cec !important; 
 
} 
 
.bg-orange { 
 
    background-color: #f78153 !important; 
 
} 
 
.bg-yellow { 
 
    background-color: #fcd419 !important; 
 
} 
 
.bg-purple { 
 
    background-color: #cb79e6 !important; 
 
} 
 
.bg-rose { 
 
    background-color: #ff61e7 !important; 
 
} 
 
.bg-brown { 
 
    background-color: #d08166 !important; 
 
} 
 
/* Border color classes */ 
 
.br-white { 
 
    border: 1px solid #ffffff !important; 
 
} 
 
.br-grey { 
 
    border: 1px solid #eeeeee; 
 
} 
 
.br-black { 
 
    border: 1px solid #555555; 
 
} 
 
.br-red { 
 
    border: 1px solid #f75353; 
 
} 
 
.br-green { 
 
    border: 1px solid #51d466; 
 
} 
 
.br-lblue { 
 
    border: 1px solid #32c8de; 
 
} 
 
.br-blue { 
 
    border: 1px solid #609cec; 
 
} 
 
.br-orange { 
 
    border: 1px solid #f78153; 
 
} 
 
.br-yellow { 
 
    border: 1px solid #fcd419; 
 
} 
 
.br-purple { 
 
    border: 1px solid #cb79e6; 
 
} 
 
.br-rose { 
 
    border: 1px solid #ff61e7; 
 
} 
 
.br-brown { 
 
    border: 1px solid #d08166; 
 
} 
 
/* Button classes */ 
 
.btn { 
 
\t border-radius: 2px; 
 
\t position: relative; 
 
} 
 
.btn.btn-no-border { 
 
\t border: 0px !important; 
 
} 
 
/* Button colors */ 
 
.btn.btn-white { 
 
\t background: #ffffff; 
 
\t color: #666666; 
 
\t border: 1px solid #dddddd; 
 
} 
 
.btn.btn-white:hover, 
 
.btn.btn-white:focus, 
 
.btn.btn-white.active, 
 
.btn.btn-white:active { 
 
\t background: #f7f7f7; 
 
\t color: #666666; 
 
} 
 
.btn.btn-grey { 
 
\t background: #eeeeee; 
 
\t color: #666666; 
 
\t border: 1px solid #d5d5d5; 
 
} 
 
.btn.btn-grey:hover, 
 
.btn.btn-grey:focus, 
 
.btn.btn-grey.active, 
 
.btn.btn-grey:active { 
 
\t background: #d5d5d5; 
 
\t color: #999; 
 
} 
 
.btn.btn-black { 
 
\t color: #ffffff; 
 
\t background: #666666; 
 
\t border: 1px solid #4d4d4d; 
 
} 
 
.btn.btn-black:hover, 
 
.btn.btn-black:focus, 
 
.btn.btn-black.active, 
 
.btn.btn-black:active { 
 
\t background: #4d4d4d; 
 
\t color: #ffffff; 
 
} 
 
.btn.btn-red { 
 
\t color: #ffffff; 
 
\t background: #ed5441; 
 
\t border: 1px solid #e52d16; 
 
} 
 
.btn.btn-red:hover, 
 
.btn.btn-red:focus, 
 
.btn.btn-red.active, 
 
.btn.btn-red:active { 
 
\t color: #ffffff; 
 
\t background: #e52d16; 
 
} 
 
.btn.btn-green { 
 
\t color: #ffffff; 
 
\t background: #51d466; 
 
\t border: 1px solid #30c247; 
 
} 
 
.btn.btn-green:hover, 
 
.btn.btn-green:focus, 
 
.btn.btn-green.active, 
 
.btn.btn-green:active { 
 
\t background: #30c247; 
 
\t color: #ffffff; 
 
} 
 
.btn.btn-lblue { 
 
\t color: #ffffff; 
 
\t background: #32c8de; 
 
\t border: 1px solid #1faabe; 
 
} 
 
.btn.btn-lblue:hover, 
 
.btn.btn-lblue:focus, 
 
.btn.btn-lblue.active, 
 
.btn.btn-lblue:active { 
 
\t background: #1faabe; 
 
\t color: #ffffff; 
 
} 
 
.btn.btn-blue { 
 
\t color: #ffffff; 
 
\t background: #609cec; 
 
\t border: 1px solid #3280e7; 
 
} 
 
.btn.btn-blue:hover, 
 
.btn.btn-blue:focus, 
 
.btn.btn-blue.active, 
 
.btn.btn-blue:active { 
 
\t background: #3280e7; 
 
\t color: #ffffff; 
 
} 
 
.btn.btn-orange { 
 
\t color: #ffffff; 
 
\t background: #f8a841; 
 
\t border: 1px solid #f69110; 
 
} 
 
.btn.btn-orange:hover, 
 
.btn.btn-orange:focus, 
 
.btn.btn-orange.active, 
 
.btn.btn-orange:active { 
 
\t background: #f69110; 
 
\t color: #ffffff; 
 
} 
 
.btn.btn-yellow { 
 
\t background: #fcd419; 
 
\t color: #ffffff; 
 
\t border: 1px solid #dfb803; 
 
} 
 
.btn.btn-yellow:hover, 
 
.btn.btn-yellow:focus, 
 
.btn.btn-yellow.active, 
 
.btn.btn-yellow:active { 
 
\t background: #dfb803; 
 
\t color: #ffffff; 
 
} 
 
.btn.btn-purple { 
 
\t background: #cb79e6; 
 
\t color: #ffffff; 
 
\t border: 1px solid #ba4ede; 
 
} 
 
.btn.btn-purple:hover, 
 
.btn.btn-purple:focus, 
 
.btn.btn-purple.active, 
 
.btn.btn-purple:active { 
 
\t background: #ba4ede; 
 
\t color: #ffffff; 
 
} 
 
.btn.btn-rose { 
 
\t background: #ff61e7; 
 
\t color: #ffffff; 
 
\t border: 1px solid #ff2edf; 
 
} 
 
.btn.btn-rose:hover, 
 
.btn.btn-rose:focus, 
 
.btn.btn-rose.active, 
 
.btn.btn-rose:active { 
 
\t background: #ff2edf; 
 
\t color: #ffffff; 
 
} 
 
.btn.btn-brown { 
 
\t background: #d08166; 
 
\t color: #ffffff; 
 
\t border: 1px solid #c4613f; 
 
} 
 
.btn.btn-brown:hover, 
 
.btn.btn-brown:focus, 
 
.btn.btn-brown.active, 
 
.btn.btn-brown:active { 
 
\t background: #c4613f; 
 
\t color: #ffffff; 
 
} 
 
/* Label */ 
 
.label { 
 
\t border-radius: 2px; 
 
\t font-weight: normal; 
 
\t padding: 3px 7px; 
 
\t font-size: 12px; 
 
\t line-height: 18px; 
 
} 
 
/* Label sizes */ 
 
.label.label-xs { 
 
\t font-size: 10px; 
 
\t padding: 1px 5px; 
 
\t line-height: 12px; 
 
} 
 
.label.label-sm { 
 
\t font-size: 11px; 
 
\t padding: 2px 6px; 
 
\t line-height: 15px; 
 
} 
 
.label.label-lg { 
 
\t font-size: 13px; 
 
\t padding: 5px 9px; 
 
\t line-height: 23px; 
 
} 
 
/* Label colors */ 
 
.label.label-white{ 
 
\t color: #666666 !important; 
 
\t background: #f7f7f7; 
 
} 
 
.label.label-grey { 
 
\t color: #666666 !important; 
 
\t background: #eeeeee; 
 
} 
 
.label.label-black { 
 
\t color: #ffffff; 
 
\t background: #666666; 
 
} 
 
.label.label-red { 
 
\t color: #ffffff; 
 
\t background: #ed5441; 
 
} 
 
.label.label-green { 
 
\t color: #ffffff; 
 
\t background: #51d466; 
 
} 
 
.label.label-lblue { 
 
\t color: #ffffff; 
 
\t background: #32c8de; 
 
} 
 
.label.label-blue { 
 
\t color: #ffffff; 
 
\t background: #609cec; 
 
} 
 
.label.label-orange { 
 
\t color: #ffffff; 
 
\t background: #f8a841; 
 
} 
 
.label.label-yellow { 
 
\t background: #fcd419; 
 
\t color: #ffffff; 
 
} 
 
.label.label-purple { 
 
\t background: #cb79e6; 
 
\t color: #ffffff; 
 
} 
 
.label.label-rose { 
 
\t background: #ff61e7; 
 
\t color: #ffffff; 
 
} 
 
.label.label-brown { 
 
\t background: #d08166; 
 
\t color: #ffffff; 
 
} 
 
/* Badges */ 
 
.badge { 
 
\t min-width: 10px; 
 
\t padding: 3px 7px !important; 
 
\t font-size: 12px; 
 
\t line-height: 12px; 
 
\t font-weight: normal; 
 
\t display: inline-block; 
 
\t color: #fff; 
 
\t border-radius: 10px; 
 
} 
 
.badge.badge-white { 
 
\t color: #666666; 
 
\t background: #ffffff; 
 
} 
 
.badge.badge-grey { 
 
\t color: #a2a2a2; 
 
\t background: #eeeeee; 
 
} 
 
.badge.badge-black { 
 
\t color: #ffffff; 
 
\t background: #666666; 
 
} 
 
.badge.badge-red { 
 
\t color: #ffffff; 
 
\t background: #ed5441; 
 
} 
 
.badge.badge-green { 
 
\t color: #ffffff; 
 
\t background: #51d466; 
 
} 
 
.badge.badge-lblue { 
 
\t color: #ffffff; 
 
\t background: #32c8de; 
 
} 
 
.badge.badge-blue { 
 
\t color: #ffffff; 
 
\t background: #609cec; 
 
} 
 
.badge.badge-orange { 
 
\t color: #ffffff; 
 
\t background: #f8a841; 
 
} 
 
.badge.badge-yellow { 
 
\t color: #ffffff; 
 
\t background: #fcd419; 
 
} 
 
.badge.badge-purple { 
 
\t color: #ffffff; 
 
\t background: #cb79e6; 
 
} 
 
.badge.badge-rose { 
 
\t color: #ffffff; 
 
\t background: #ff61e7; 
 
} 
 
.badge.badge-brown { 
 
\t color: #ffffff; 
 
\t background: #d08166; 
 
} 
 
.btn .badge { 
 
\t position: absolute; 
 
\t top: -13px; 
 
\t right: -8px; 
 
} 
 
/* Social Media */ 
 
.facebook { \t background: #3280e7; } 
 
.facebook:hover { background: #134fa0; } 
 
.twitter { background: #32c8de;} 
 
.twitter:hover { \t background: #188392;} 
 
.google-plus {background: #f96f4a;} 
 
.google-plus:hover { \t background: #eb6440;} 
 
.linkedin { \t background: #729fda;} 
 
.linkedin:hover {background: #3069b6;} 
 
.pinterest { \t background: #ed5441;} 
 
.pinterest:hover { background: #b72411;} 
 
.dropbox {background: #32c8de;} 
 
.dropbox:hover { \t background: #188392;} 
 
.bitcoin {background: #f8a841;} 
 
.bitcoin:hover { \t background: #cc7607;} 
 
.foursquare {background: #22bed4;} 
 
.foursquare:hover {background: #146f7c;} 
 
.flickr { background: #ff61e7;} 
 
.flickr:hover { \t background: #fa00d4;} 
 
.github {background: #666666;} 
 
.github:hover { \t background: #333333;} 
 
.instagram { \t background: #d6917a;} 
 
.instagram:hover {background: #b35637;} 
 
.skype {background: #32c8de;} 
 
.skype:hover {background: #188392;} 
 
.tumblr {background: #84a1c8;} 
 
.tumblr:hover {background: #476d9f;} 
 
.vimeo {background: #32c8de;} 
 
.vimeo:hover {background: #188392;} 
 
.dribbble{background: #ff2edf;} 
 
.dribbble:hover {background: #c700a9;} 
 
.youtube {background: #ed5441;} 
 
.youtube:hover { \t background: #b72411;} 
 

 
/* General CSS */ 
 
/* Body */ 
 
body{ 
 
\t background: #f4f8fd; 
 
} 
 
/* UI - X */ 
 
.ui-323{ 
 
\t max-width: 310px; 
 
\t margin: 40px auto; 
 
\t padding:0px 20px; 
 
\t overflow: hidden; 
 
} 
 
/* Nav Tabs */ 
 
.ui-323 ul.ui-nav{ 
 
\t float: left; 
 
\t padding: 0px; 
 
\t list-style-type: none; 
 
\t margin-bottom: 0px; 
 
} 
 
/* Listing */ 
 
.ui-323 ul.ui-nav > li{ 
 
\t position: relative; 
 
} 
 
.ui-323 ul.ui-nav > li.active::before{ 
 
\t content: "\f0d9"; 
 
\t font-family: "FontAwesome" ; 
 
\t position: absolute; 
 
\t top: 20px; 
 
\t right: -2px; 
 
\t font-size: 30px; 
 
\t color: #fff; 
 
\t opacity: 1; 
 
\t -webkit-transition: all 1s; 
 
    -moz-transition: all 1s; 
 
    -o-transition: all 1s; 
 
    transition: all 1s; 
 
} 
 
.ui-323.active ul.ui-nav > li.active::before{ 
 
\t opacity: 0; 
 
} 
 
.ui-323 ul.ui-nav > li > a{ 
 
\t display: block; 
 
\t font-size: 20px; 
 
\t text-align: center; 
 
\t width: 60px; 
 
\t height: 60px; 
 
\t line-height: 60px; 
 
\t color: #fff; 
 
\t border-bottom: 1px solid rgba(255,255,255,0.2); 
 
} 
 
.ui-323 ul.ui-nav > li:last-child > a{ 
 
\t border-bottom: 0px; 
 
} 
 
/* Tab Content */ 
 
.ui-323 .tab-content{ 
 
\t margin-left: 60px; 
 
\t max-width: 320px; 
 
\t height: 100%; 
 
\t background: #fff; 
 
\t -webkit-transition: all 0.5s; 
 
    -moz-transition: all 0.5s; 
 
    -o-transition: all 0.5s; 
 
\t -ms-transition: all 0.5s; 
 
    transition: all 0.5s; 
 
    z-index: 99; 
 
position: relative; 
 
} 
 
.ui-323.active .tab-content{ 
 
\t max-width: 0px; 
 
} 
 
/* Tab Pane */ 
 
.ui-323 .tab-content .tab-pane{ 
 
\t opacity: 1; 
 
\t border: 1px solid #ddd; 
 
\t border-left: 0px; 
 
\t -webkit-transition: all 2s; 
 
    -moz-transition: all 2s; 
 
    -o-transition: all 2s; 
 
\t -ms-transition: all 2s; 
 
\t transition: all 2s; 
 
} 
 
.ui-323.active .tab-content .tab-pane{ 
 
\t opacity: 0; 
 
\t -webkit-transition: all 0.2s; 
 
    -moz-transition: all 0.2s; 
 
    -o-transition: all 0.2s; 
 
\t -ms-transition: all 0.2s; 
 
    transition: all 0.2s; 
 
} 
 
/* Main Heading */ 
 
.ui-323 .tab-content .tab-pane h3{ 
 
\t font-size: 14px; 
 
\t line-height: 25px; 
 
\t text-transform: uppercase; 
 
\t margin: 18px 25px 8px; 
 
\t color:#888; 
 
} 
 
@media(max-width: 274px){ 
 
\t .ui-323 .tab-content .tab-pane h3{ 
 
\t \t font-size: 12px; 
 
\t \t margin: 18px 8px 8px; 
 
\t } 
 
} 
 
.ui-323 .tab-content .tab-pane h3 > i{ 
 
\t font-size: 13px; 
 
\t line-height: 23px; 
 
\t margin-right:8px; 
 
} 
 
/* Headings */ 
 
.ui-323 .tab-content .tab-pane ul li{ 
 
\t font-size: 14px; 
 
\t line-height: 24px; 
 
\t margin: 0px; 
 
\t padding: 8px 2px; 
 
\t font-weight:400; 
 
} 
 
@media(max-width: 274px){ 
 
\t .ui-323 .tab-content .tab-pane ul li{ 
 
\t \t font-size: 12px; 
 
\t \t padding: 8px; 
 
\t } 
 
} 
 
.ui-323 .tab-content .tab-pane ul li > a{ 
 
\t display: block; 
 
\t width: 100%; 
 
} 
 
.ui-323 .tab-content .tab-pane ul li > a::before{ 
 
\t content: "\f101"; 
 
\t font-family: "FontAwesome"; 
 
\t font-weight: 400; 
 
\t margin-right: 6px; 
 
\t font-size: 14px; 
 
\t line-height: 24px; 
 
\t color: #bbb; 
 
} 
 
.ui-323 .tab-content .tab-pane ul li > a > span{ 
 
\t display: block; 
 
\t float: right; 
 
\t margin-top: 4px; 
 
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 
 
<script src="http://ashobiz.asia/boot-extended15/ui/js/placeholder.js"></script> 
 
<script src="http://ashobiz.asia/boot-extended15/ui/js/bootstrap.min.js"></script> 
 
<div class="ui-323 active " style="position: fixed; width: 100%;"> 
 
    <!-- Nav tabs --> 
 
    <ul class="ui-nav bg-lblue"> 
 
    <!-- Bars --> 
 
    <li> 
 
     <a href="#" class="ui-bar"> 
 
     <i class="fa fa-home"></i> 
 
     </a> 
 
    </li> 
 
    <!-- Tabs --> 
 
    <li class="active" data-toggle="tooltip" data-placement="right" title="User"> 
 
     <a href="#one" class="ui-user" data-toggle="tab"> 
 
     <!-- Icon --> 
 
     <i class="fa fa-user"></i> 
 
     </a> 
 
    </li> 
 
    <!-- Tabs --> 
 
    <li data-toggle="tooltip" data-placement="right" title="Doctor"> 
 
     <a href="#two" class="ui-doctor" data-toggle="tab"> 
 
     <!-- Icon --> 
 
     <i class="fa fa-user-md"></i> 
 
     </a> 
 
    </li> 
 
    <!-- Tabs --> 
 
    <li data-toggle="tooltip" data-placement="right" title="Patient"> 
 
     <a href="#three" class="ui-patient" data-toggle="tab"> 
 
     <!-- Icon --> 
 
     <i class="fa fa-heartbeat"></i> 
 
     </a> 
 
    </li> 
 
    <!-- Tabs --> 
 
    <li data-toggle="tooltip" data-placement="right" title="Settings"> 
 
     <a href="#four" class="ui-settings" data-toggle="tab"> 
 
     <!-- Icon --> 
 
     <i class="fa fa-cog"></i> 
 
     </a> 
 
    </li> 
 
    <!-- Tabs --> 
 
    <li data-toggle="tooltip" data-placement="right" title="Import File"> 
 
     <a href="#five" class="ui-import" data-toggle="tab"> 
 
     <!-- Icon --> 
 
     <i class="fa fa-database"></i> 
 
     </a> 
 
    </li> 
 
    </ul> 
 
    <!-- Tab Content --> 
 
    <div class="tab-content"> 
 
    <!-- Tab Pane --> 
 
    <div class="tab-pane fade in active clearfix" id="one"> 
 
     <!-- Main Heading --> 
 
     <h3><i class="fa fa-user lblue"></i>User</h3> 
 
     <ul class="list-unstyled"> 
 
     <li><a href="../UI/CreateNewUser.aspx" class="active">Create New User</a> 
 
     </li> 
 
     <li><a href="../UI/EditUserDetails.aspx">Edit Existing User</a> 
 
     </li> 
 

 
     </ul> 
 
    </div> 
 
    <!-- Tab Pane --> 
 
    <div class="tab-pane fade clearfix" id="two"> 
 
     <!-- Main Heading --> 
 
     <h3><i class="fa fa-user-md lblue"></i>Doctor</h3> 
 
     <ul class="list-unstyled"> 
 
     <li><a href="#" class="active">Doctor Link1</a> 
 
     </li> 
 
     <li><a href="#">Doctor Link2</a> 
 
     </li> 
 
     <li><a href="#">Doctor Link2</a> 
 
     </li> 
 

 
     </ul> 
 
    </div> 
 
    <!-- Tab Pane --> 
 
    <div class="tab-pane fade clearfix" id="three"> 
 
     <!-- Main Heading --> 
 
     <h3><i class="fa fa-heartbeat lblue"></i>Patient</h3> 
 
     <ul class="list-unstyled"> 
 
     <li><a href="#" class="active">Patient Link1</a> 
 
     </li> 
 
     <li><a href="#">Patient Link2</a> 
 
     </li> 
 
     <li><a href="#">Patient Link3</a> 
 
     </li> 
 
     <li><a href="#">Patient Link4</a> 
 
     </li> 
 
     <li><a href="#">Patient Link5</a> 
 
     </li> 
 
     <li><a href="#">Patient Link6</a> 
 
     </li> 
 
     <li><a href="#">Patient Link7</a> 
 
     </li> 
 
     </ul> 
 
    </div> 
 
    <!-- Tab Pane --> 
 
    <div class="tab-pane fade clearfix" id="four"> 
 
     <!-- Main Heading --> 
 
     <h3><i class="fa fa-cog lblue"></i>Settings</h3> 
 
     <ul class="list-unstyled"> 
 
     <li><a href="#" class="active">Settings Link1</a> 
 
     </li> 
 
     <li><a href="#">Settings Link2</a> 
 
     </li> 
 
     <li><a href="#">Settings Link3</a> 
 
     </li> 
 
     <li><a href="#">Settings Link4</a> 
 
     </li> 
 
     <li><a href="#">Settings Link5</a> 
 
     </li> 
 
     <li><a href="#">Settings Link6</a> 
 
     </li> 
 
     </ul> 
 
    </div> 
 
    <!-- Tab Pane --> 
 
    <div class="tab-pane fade clearfix" id="five"> 
 
     <!-- Main Heading --> 
 
     <h3><i class="fa fa-database lblue"></i>Import File</h3> 
 
     <ul class="list-unstyled"> 
 
     <li><a href="../UI/ImportPatients.aspx" class="active">Import Patients</a> 
 
     </li> 
 

 
     </ul> 
 
    </div> 
 
    </div> 
 
</div> 
 

 
<div class="bg_ctr"> 
 
    <a href="">click</a> 
 

 
</div> 
 
</div>

这里是fiddle

+0

实时预览将是有益的。 – KittMedia

+2

在CSS基础知识上需要帮助的另一引导程序用户:) – enguerranws

+0

@SwarupKumar为了将来的参考,我已经将您的Fiddle代码移到您的问题中,因为问题需要自包含,而不是依赖外部资源。 –

回答

0

试试这个:

.tab-content{ 
    z-index: 999; 
    position: absolute; /*position has to be absolute*/ 
} 
+1

位置没有设置为“绝对”。它不适用于'static'元素。 – KittMedia

0

你父容器的.ui-323的位置是:固定和的z-index:汽车(默认情况下) & child .tab-cont ent有z-index:999;这将无法正常工作。

您应该给.ui-323 z-index:-1; &孩子z-index:1;使其工作。

Stacking Context Ref

+2

它已经是,看问题中的代码... – KittMedia

0

只要给z-index.ui-323

由于父容器.tab-content其中position:fixed需要更大的z-indexbg_ctr类显示在上面。

.ui-323{ 
    max-width: 310px; 
    margin: 40px auto; 
    padding:0px 20px; 
    overflow: hidden; 
    z-index:1; // Here given z-index 
} 

Working Fiddle

编辑:

为了解决链接点击的问题添加下面的CSS:

.ui-323.active{ 
    z-index:-1; 
} 

Updated Fiddle

+0

现在的问题是点击按钮不可点击。 –

+0

@SwarupKumar编辑了我的答案。 – ketan

0

您只需在正确的元素上放置一个正确的位置和z-索引。

我假设你想要的左子菜单(的.ui-323)将超过其他元素:

.ui-323 { 
    z-index: 10; 
} 
相关问题