首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >基础及滚动版100%发行

基础及滚动版100%发行
EN

Stack Overflow用户
提问于 2016-11-16 20:12:06
回答 1查看 64关注 0票数 0

我有一个部分,它是相等的纵横交错的列。如果你看第二列,这里写的是内容如果我在j涡旋窗格上做了100%,它显示水平条,如果我给它98%,它工作正常,但不是全宽度的列。不知道为什么它增加水平条到100%,但不是98%。我不确定基金会是否导致了我的问题,但是如果我把它从专栏中拿出来,放进一行,100%的效果很好,只是不是在一个大的-6。

html

代码语言:javascript
复制
<section id="component">
    <div class="row expanded collapse">
      <div class="large-6 column">
      <img src="images/image.png">      
      </div>
      <div class="large-6 column">
        <div class="jscroll-pane">      
        Content Here

        </div>       
       </div>      
      </div>
</section>

css

代码语言:javascript
复制
.jscroll-pane {
    display: block;
    width: 100% !important;
    height: 400px;
    max-height: 400px;
    overflow: auto;
    background-color: #fff;
}


#component {
    padding: 0px;
    background-color: #fff;
}

J涡旋外部css文件

代码语言:javascript
复制
.jspContainer{
    overflow:hidden;
    position:relative;
    height:100% !important; 
    width: 100% !important;
}

.jspPane{
    position:absolute;
    width: 100%!important;
}

.jspVerticalBar
{
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 100%;
    background: red;
}

.jspHorizontalBar
{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 16px;
    background: red;
}

.jspCap
{
    display: none;
}

.jspHorizontalBar .jspCap
{
    float: left;
}

.jspTrack
{
    background: #d8d8d8;
    position: relative;
}

.jspDrag
{
    background: #000;
    position: relative;
    top: 0;
    left: 0;
    cursor: pointer;
}

.jspHorizontalBar .jspTrack,
.jspHorizontalBar .jspDrag
{
    float: left;
    height: 100%;
}

.jspArrow
{
    background: #50506d;
    text-indent: -20000px;
    display: block;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.jspArrow.jspDisabled
{
    cursor: default;
    background: #80808d;
}

.jspVerticalBar .jspArrow
{
    height: 16px;
}

.jspHorizontalBar .jspArrow
{
    width: 16px;
    float: left;
    height: 100%;
}

.jspVerticalBar .jspArrow:focus
{
    outline: none;
}

.jspCorner
{
    background: #eeeef4;
    float: left;
    height: 100%;
}

/* Yuk! CSS Hack for IE6 3 pixel bug :( */
* html .jspCorner
{
    margin: 0 -3px 0 0;
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-11-21 01:23:18

试一试,删除显示块并更改溢出: auto隐藏;我相信这会对您有所帮助。

代码语言:javascript
复制
.jscroll-pane {
    width: 100% !important;
    height: 400px;
    max-height: 400px;
    overflow: hidden;
    background-color: #fff;
}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40641428

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档