簡體   English   中英

手風琴面板內容不滾動

[英]Accordion Panel Content Not Scrolling

美好的一天,

我的網站出現了一個很奇怪的問題。 我正在嘗試將Time.ly Calendar小部件放置在手風琴的一個面板中。 如果您在“游戲: http ://www.rthhockey.com/onehockey”下查看此頁面,它將完全按照我的意願進行渲染。問題是,如果您在此處查看, 請訪問http://www.rthhockey.com。 / tcs-hockey ,我只是從工作頁面復制並粘貼代碼,而只是替換日歷腳本,它沒有按預期滾動。在另一頁上, http://www.rthhockey.com/canlan ,我只能說,日歷腳本是唯一可以更改的東西,只是組織者編號在更改,這對我來說很奇怪,但也許有些專業人士可能會更改一種簡單的解決方案,我嘗試過使用面板和手風琴的高度都無濟於事,在此先感謝您可能提供的任何幫助。

CSS

.ac-container {
    max-width: 810px;
}

.ac-container label {
    height: 50px !important;
    line-height: 50px !important;
    font-size: 26px !important;
    font-family: 'Open Sans';
    padding: 5px 15px;
    position: relative;
    z-index: 20;
    display: block;
    height: 30px;
    cursor: pointer;
    color: #ff6600;
    line-height: 50px;
    font-size: 26px;
    background: #ffffff;
    font-size: 26px;
    height: 30px;
    line-height: 50px;
    border: 1px solid #ff6600;
}

.ac-container {
    width: 100%;
    margin: 10px auto 30px auto;
    text-align: left;
}

.ac-container label:hover {
    background: #fff;
}

.ac-container input:checked + label,.ac-container input:checked + label:hover {
    background: #ffffff;
    color: #ff6600;
    height: 30px;
    line-height: 21px;
    font-size: 13px;
}

.ac-container label:hover:after,.ac-container input:checked + label:hover:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: 13px;
    top: 7px;
    background: none;
}

.ac-container input:checked + label:hover:after {
    background-image: none;
}

.ac-container input {
    display: none;
}

.ac-container article {
    background: #ffffff;
    margin-top: -5px;
    overflow: hidden;
    height: 0;
    position: relative;
    z-index: 10;
    -webkit-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
    -moz-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
    -o-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
    -ms-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
    transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
}

.ac-container article p {
    font-style: normal;
    color: #494949;
    line-height: 23px;
    font-size: 10px;
    padding: 5px;
    font: normal normal 12px 'Open Sans';
}

.ac-container input:checked ~ article {
    -webkit-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
    -moz-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
    -o-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
    -ms-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
    transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
    box-shadow: 0 0 0 1px rgba(155,155,155,0.3);
}

.ac-container input:checked ~ article.ac-small {
    height: 390px;
}

.ac-container input:checked ~ article.ac-medium {
    height: 420px;
}

.ac-container input:checked ~ article.ac-large {
    height: 230px;
}
div.scroll {
   max-height: 1250px;
   overflow: auto;
}
.timely-stream:not(.timely-agenda) .timely-event {
 min-height:92px; !important
}
.timely-title-text,
.timely-details-container{ 
font-size:67%;
}  

HTML

<section class="ac-container">
                <div>
                    <input id="ac-1" name="accordion-1" type="radio" >
                    <label for="ac-1">TOURNAMENTS</label>
                    <article class="ac-small">
                        <div class="scroll">
<script src="//dashboard.time.ly/js/embed.js" data-src="https://events.time.ly/hye2ww2?categories=21029&organizers=43496" data-max-height="0" id="timely_script" class="timely-script"></script>
</div>
                    </article>
                </div>
                <div>
                    <input id="ac-2" name="accordion-1" type="radio" checked="">
                    <label for="ac-2">OneHockey</label>
                    <article class="ac-medium">
                        <a href="http://www.rthhockey.com" target="_blank"><img src="https://i.imgur.com/HJwXuym.png?2" title="OneHockey Events" /></a>
                    </article>
                </div>
                <div>
                    <input id="ac-3" name="accordion-1" type="radio">
                    <label for="ac-3">INFO</label>
                    <article class="ac-large">
                        Blah, blah, blah
                    </article>
                </div>
            </section>

The 3 differnt script codes that I've used with the 1st being the one that is working:

<script src="//dashboard.time.ly/js/embed.js" data-src="https://events.time.ly/hye2ww2?categories=21029&organizers=43496" data-max-height="0" id="timely_script" class="timely-script"></script>

<script src="//dashboard.time.ly/js/embed.js" data-src="https://events.time.ly/hye2ww2?categories=26034&organizers=46341" data-max-height="0" id="timely_script" class="timely-script"></script>

<script src="//dashboard.time.ly/js/embed.js" data-src="https://events.time.ly/hye2ww2?categories=21029&organizers=43496" data-max-height="0" id="timely_script" class="timely-script"></script>

該div需要應用“溢出:滾動”。

文章class =“ ac-small”

示例:article.ac-small {溢出:滾動;}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM