html - html 部分未显示在 visual studio 中

标签 html css twitter-bootstrap-3

.nav-md .container.body .col-md-3.left_col {
    min-height: 100%;
    width: 230px;
    padding: 0;
    position: absolute;
    display: -ms-flexbox;
    display: flex;
    z-index: 1;
    background-color:black
}
.nav-md .container.body .col-md-3.left_col.menu_fixed {
        height: 100%;
        position: fixed;
        background-color:aqua
    }
body .container.body .right_col {
    background: #F7F7F7;
}
.nav-md .container.body .right_col {
    padding: 10px 20px 0;
    margin-left: 230px;
}
.nav-md .container.body .col-md-3.left_col {
    display: none;
}
.nav-md .container.body .right_col {
    width: 100%;
    padding-right: 0;
}
.site_title {
    text-overflow: ellipsis;
    overflow: hidden;
    font-weight: 400;
    font-size: 22px;
    width: 100%;
    color: #ECF0F1 !important;
    margin-left: 0 !important;
    line-height: 59px;
    display: block;
    height: 55px;
    margin: 0;
    padding-left: 10px;
}
    .site_title:hover, .site_title:focus {
        text-decoration: none;
    }
    .site_title i {
        border: 1px solid #EAEAEA;
        padding: 5px 6px;
        border-radius: 50%;
    }
.left_col {
    background: #2A3F54;
}
.nav_title {
    width: 230px;
    float: left;
    background: #2A3F54;
    border-radius: 0;
    height: 57px;
}
<body class="nav-md">
    <div class="container body">
        <div class="main_container">
            <div class="col-md-3 left_col">
                <div class="left_col scroll-view">
                     <div class="navbar nav_title" style="border: 0;">
              <a href="index.html" class="site_title"><i class="fa fa-paw"></i> <span>Gentellela Alela!</span></a>
            </div>
                </div>  
            </div> 
        </div> 
    </div> 
</body>

导航栏导航标题中的任何内容都不会显示。我不明白为什么内容不会显示。我需要一个顶部带有此标题的侧边菜单。但我首先尝试显示此内容。这里有什么问题.

最佳答案

您应该从您的 CSS 代码中删除这一行:

.nav-md .container.body .col-md-3.left_col {
    display: none;

或使用此代码:

.nav-md .container.body .col-md-3.left_col {
        display: block;

这是 Jsfiddle:enter link description here

关于html - html 部分未显示在 visual studio 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39756052/

相关文章:

html - 自动将内容 block 无间隙地排列在列中?

javascript - 将 jquery 应用于加载到 div 的页面

javascript - 如何在 $(this) 之后选择下一个元素?

php - Bootstrap 3 日历?

html - 固定宽度溢出容器

html - 是否可以在下拉菜单中向右浮动两个带有超赞字体图标的链接

php - 实时更改任何站点可视化属性

html - 如何使用 css 改变 <pre> 字体大小

css - web2py 默认表单样式不工作

twitter-bootstrap-3 - 在 Vue JS 中处理 Bootstrap 模态隐藏事件