Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                    <header>
        <div class="logo">
            <a href="#first_video">
                <img src="https://i.imgur.com/HPGjpi8.jpg" alt="">
            </a>
        </div>
        <div class="menu">
            <div class="menu_li">
                <a href="#popular_video" class="menufor1"> <img src="https://i.imgur.com/tBOiWQK.png" alt="" class="menu_pic">
                </a>
            </div>
            <div class="menu_li">
                <a href="#" class="menufor2"> <img src="https://i.imgur.com/WZmde2K.png" alt="" class="menu_pic">
                </a>
            </div>
            <div class="menu_li">
                <a href="#about_program" class="menufor3"> <img src="https://i.imgur.com/6jvV4nI.png" alt="" class="menu_pic">
                </a>
            </div>
            <div class="menu_li">
                <a href="#host_s" class="menufor4"> <img src="https://i.imgur.com/SdpdYXg.png" alt="" class="menu_pic">
                </a>
            </div>
            <div class="menu_li">
                <a href="#" class="menufor5"> <img src="https://i.imgur.com/WZmde2K.png" alt="" class="menu_pic">
                </a>
            </div>
            <div class="menu_li">
                <a href="#staff_team" class="menufor6"> <img src="https://i.imgur.com/2FC9M2g.png" alt="" class="menu_pic">
                </a>
            </div>
        </div>
        <div class="clearfix"></div>

    </header>
    <div class="for_bg for_bg1">
        <div class="container container1">
            <div class="hide_nav">
                <ul>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                </ul>
            </div>

            <div class="p01 p_area" id="first_video">

                <div class="index_content ">

                    <div class="first_video_twitch">
                        <div class="twitch_l">
                            <div class="twitch_v">

                            </div>
                            <div class="twitch_v_info">

                            </div>
                        </div>

                        <div class="twitch_c">

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

            <div class="p02 p_area" id="popular_video">
                <div class="index_content ">
                    <div class="index_title">
                        <img src="https://i.imgur.com/y3GcGwB.png" alt="">
                    </div>
                    <div class="RWD_index_title">
                        <img src="https://i.imgur.com/y3GcGwB.png" alt="">
                    </div>
          
                    <div class="hot_video_a">
                        <div class="hot_video">
                            <img src="https://i.imgur.com/MUAaLft.jpg" alt="">
                            <div class="play_btn">
                                <img src="images/index/btn_play.png" alt="">
                            </div>
                             <h3>標題標題標題</h3>
                             <p>內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文</p>
                            <p class="date">2019.05.16</p>

                        </div>
                        <div class="hot_video">
                            <img src="https://i.imgur.com/MUAaLft.jpg" alt="">
                            <div class="play_btn">
                                <img src="images/index/btn_play.png" alt="">
                            </div>
                            <h3>標題標題標題</h3>
                            <p>內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文</p>
                            <p class="date">2019.05.16</p>

                        </div>
                        <div class="hot_video">
                            <img src="https://i.imgur.com/MUAaLft.jpg" alt="">
                            <div class="play_btn">
                                <img src="images/index/btn_play.png" alt="">
                            </div>
                            <h3>標題標題標題</h3>
                            <p>內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文</p>
                            <p class="date">2019.05.16</p>

                        </div>
                    </div>
                    <div class="all_video">
                        <a href="#">
                            <img src="images/index/btn_all.png" alt="">
                        </a>
                    </div>
                </div>
            </div>
            <div class="p03 p_area" id="about_program">
                <div class="index_content ">
                    <div class="index_title">
                        <img src="https://i.imgur.com/y3GcGwB.png" alt="">
                    </div>
                    <div class="RWD_index_title">
                        <img src="https://i.imgur.com/y3GcGwB.png" alt="">
                    </div>
                    <div class="about">
                        <img src="https://i.imgur.com/eb6tlVc.png" alt="" class="yam_logo">
                       內文內文內文內文內文內文
                        <br>
                       內文內文內文內文
                        <img src="https://i.imgur.com/eb6tlVc.png" alt="" class="host_head">
                        內文內文內文內文
                        <img src="https://i.imgur.com/eb6tlVc.png" alt="" class="host_head">
                        內文內文內文內文內文
                        <br>
                        內文內文內文內文內文內文內文內文內文
                        <br>
                        內文內文內文內文內文內文內文內文內文
                    </div>
                    <div class="about_btns">
                        <div class="channel_btn">
                            <a href="#">
                                <img src="images/index/btn_channal.png" alt="">
                            </a>
                        </div>
                        <div class="sponsor_btn">
                            <a href="#">
                                <img src="images/index/btn_sponsor.png" alt="">
                            </a>
                        </div>

                    </div>
                </div>
            </div>
            <div class="p04 p_area" id="host_s">
                <div class="index_content ">
                    <div class="index_title">
                        <img src="https://i.imgur.com/y3GcGwB.png" alt="">
                    </div>
                    <div class="RWD_index_title">
                        <img src="https://i.imgur.com/y3GcGwB.png" alt="">
                    </div>
                    <div class="host_area">
                        <div class="host_info">
                            <img src="https://i.imgur.com/MUAaLft.jpg" alt="" class="host_pic">
                            <img src="images/index/host_p.png" alt="" class="identity">
                            <h3>標題標題標題</h3>
                            <p>內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文</p>

                        </div>
                        <div class="host_info">
                            <img src="https://i.imgur.com/MUAaLft.jpg" alt="" class="host_pic">
                            <img src="images/index/host_p.png" alt="" class="identity">
                            <h3>標題標題標題</h3>
                            <p>內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文</p>

                        </div>
                        <div class="host_info">
                            <img src="https://i.imgur.com/MUAaLft.jpg" alt="" class="host_pic">
                            <img src="images/index/host_help_p.png" alt="" class="identity">
                            <h3>標題標題標題</h3>
                            <p>內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文</p>

                        </div>
                    </div>
                </div>
            </div>
            <div class="p05 p_area">
                <div class="index_content ">
                
                    <div class="host_area">
                        <div class="host_info">
                            <img src="https://i.imgur.com/MUAaLft.jpg" alt="" class="host_pic">
                            <img src="images/index/guest_p.png" alt="" class="identity">
                            <h3>標題標題標題</h3>
                            <p>內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文</p>

                        </div>
                        <div class="host_info">
                            <img src="https://i.imgur.com/MUAaLft.jpg" alt="" class="host_pic">
                            <img src="images/index/guest_p.png" alt="" class="identity">
                            <h3>標題標題標題</h3>
                            <p>內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文</p>

                        </div>
                        <div class="host_info">
                            <img src="https://i.imgur.com/MUAaLft.jpg" alt="" class="host_pic">
                            <img src="images/index/guest_p.png" alt="" class="identity">
                            <h3>標題標題標題</h3>
                            <p>內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文</p>

                        </div>
                    </div>
                </div>
            </div>
            <div class="p06 p_area" id="behinds">
                <div class="index_content ">
                    <div class="index_title">
                        <img src="https://i.imgur.com/y3GcGwB.png" alt="">
                    </div>
                    <div class="RWD_index_title">
                        <img src="https://i.imgur.com/y3GcGwB.png" alt="">
                    </div>
                    <div class="behind_a">
                        <div class="behind_video">
                            <a href="#">
                                <img src="https://i.imgur.com/MUAaLft.jpg" alt="">

                                <h3>標題標題標題</h3>
                                <p>內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文</p>
                                <p class="date">2019.05.16</p>
                            </a>
                        </div>
                        <div class="behind_video">
                            <a href="#">
                                <img src="https://i.imgur.com/MUAaLft.jpg" alt="">

                                <h3>標題標題標題</h3>
                                <p>內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文</p>
                                <p class="date">2019.05.16</p>
                            </a>
                        </div>
                        <div class="behind_video">
                            <a href="#">
                                <img src="https://i.imgur.com/MUAaLft.jpg" alt="">

                                <h3>標題標題標題</h3>
                                <p>內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文內文</p>
                                <p class="date">2019.05.16</p>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="p07 p_area" id="staff_team">
                <div class="index_content ">
                    <div class="index_title">
                        <img src="https://i.imgur.com/y3GcGwB.png" alt="">
                    </div>
                    <div class="RWD_index_title">
                        <img src="https://i.imgur.com/y3GcGwB.png" alt="">
                    </div>
                    <div class="team_area">
                        <div class="team_l">
                            <div class="staff">
                                <label for="">AAA /</label>
                                <p>AAA</p>
                            </div>
                            <div class="staff">
                                <label for="">BBB /</label>
                                <p>BBB</p>
                            </div>
                            <div class="staff">
                                <label for="">CCCC /</label>
                                <p>CCC</p>
                            </div>
                            <div class="staff">
                                <label for="">DDDD /</label>
                                <p>DDD</p>
                            </div>
                            <div class="staff">
                                <label for="">EEEE /</label>
                                <p>EEE</p>
                            </div>
                            <div class="staff">
                                <label for="">FFFF /</label>
                                <p>FFF</p>
                            </div>
                            <div class="staff">
                                <label for="">GGG /</label>
                                <p>GGG</p>
                            </div>
                            <div class="staff">
                                <label for="">HHHH /</label>
                                <p>HHHHHH</p>
                            </div>

                        </div>
                        <div class="team_r">
                            <div class="staff">
                                <label for="">AAA /</label>
                                <p>AAA</p>
                            </div>
                            <div class="staff">
                                <label for="">BBB /</label>
                                <p>BBB</p>
                            </div>
                            <div class="staff">
                                <label for="">CCCC /</label>
                                <p>CCC</p>
                            </div>
                            <div class="staff">
                                <label for="">DDDD /</label>
                                <p>DDD</p>
                            </div>
                            <div class="staff">
                                <label for="">EEEE /</label>
                                <p>EEE</p>
                            </div>
                            <div class="staff">
                                <label for="">FFFF /</label>
                                <p>FFF</p>
                            </div>
                            <div class="staff">
                                <label for="">GGG /</label>
                                <p>GGG</p>
                            </div>
                            <div class="staff">
                                <label for="">HHHH /</label>
                                <p>HHHHHH</p>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
            <div class="p08 p_area">
                <div class="index_content">
                    <div class="ad">
                        <img src="https://i.imgur.com/MUAaLft.jpg" alt="">
                    </div>

                </div>
            </div>


        </div>
    </div>


    <footer>
        <a href="https://www.yam.com/">
            <img src="images/index/footer_logo.png" alt="" class="footer_img">
        </a>

        <p>YAAAAA公司 版權所有。 本網站已依台灣網站內容分級規定處理</p>
    </footer>


    <div class="RWD_menu_icon">
        <img src="https://i.imgur.com/xQUbEW3.png" alt="">
    </div>
    <div class="RWD_menu">
        <ul>
            <li>
                <img src="https://i.imgur.com/eb6tlVc.png" alt="" class="RWD_closbtn">
            </li>
            <li><a href="#popular_video">P1</a></li>
            <li><a href="#">XXP2</a></li>
            <li><a href="#about_program">P3</a></li>
            <li><a href="#host_s">P4</a></li>
            <li><a href="#">XXP5</a></li>
            <li><a href="#staff_team">P6</a></li>
        </ul>
    </div>


              
            
!

CSS

              
                *{
  margin: 0;
  padding: 0;
  text-decoration:none;
  font-family:微軟正黑體;
}
body, html {
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    height: 100vh;
    box-sizing: border-box;
    position: relative;
    font-family: 'Noto Sans TC', sans-serif;
    color: #263636;
}

.for_bg {
    position: relative;
}

.for_bg1 {
    background-image: url("../images/bg.jpg");
}

.for_bg2 {
    background-image: url("../images/bg2.jpg");
    background-repeat: repeat-y;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 30px;
}

.container1 {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    position: fixed;
    height: 700px;
    overflow: hidden;
    overflow-x: hidden;
    top: 50%;
    left: 50%;
    transform: translateX(-50%)translateY(-50%);
    z-index: 2;
}

    .container1::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }



header {
    width: 80%;
    max-width: 1200px;
    position: fixed;
    margin: 10px auto;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    width: 10%;
    float: left;
}

    .logo a {
        display: block;
    }

    .logo img {
        width: 100%;
    }

.menu {
    width: 80%;
    float: right;
    margin: 0 auto;
}

.menu_li {
    width: 16%;
    display: inline-block;
}

    .menu_li a {
        width: 100%;
        display: block;
        margin: -35px auto 0;
    }

.menu_pic {
    width: 100%;
}

.clearfix {
    clear: both;
}

.RWD_menu_icon {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: none;
}

    .RWD_menu_icon img {
        width: 100%;
    }

.RWD_menu {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 5;
    display: none;
}

    .RWD_menu ul {
        background-color: #00DAE9;
    }

        .RWD_menu ul li {
            text-align: right;
            font-size: 1.5rem;
        }

            .RWD_menu ul li:nth-child(1) {
                padding: 10px;
            }

            .RWD_menu ul li a {
                display: block;
                padding: 20px 10px 20px 0;
                color: #fff;
                border-bottom: 2px solid rgba(255, 255, 255, 0.486);
            }

                .RWD_menu ul li a:hover {
                    border-bottom: 2px solid #fff;
                }

.RWD_closbtn {
    width: 30px;
    height: 30px;
}

/*將導覽點點藏起來*/

.hide_nav {
    display: none;
}



footer {
    width: 50%;
    position: fixed;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-align: center;
}

    footer a {
        width: 20%;
        display: inline-block;
    }

    footer img {
        width: 100%;
        vertical-align: middle;
    }

    footer p {
        width: 65%;
        display: inline-block;
        vertical-align: middle;
        font-size: 1rem;
        color: #fff;
        line-height: 2;
        margin: 0 0 0 20px;
    }



/*--------------------------------------首頁區--------------------------------*/

/* 共同 */

/*一個區域要100vh高*/

/* .p_area {
    height: 100vh;
    position: relative;
    max-width: 1200px;
} */

.p_area {
    height: 100%;
    position: relative;
    max-width: 1200px;
}

/* .index_content {
    width: 100%;
    max-height: 70%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
} */


.index_content {
    width: 100%;
    max-height: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.first_video_yt {
    width: 100%;
}

    .first_video_yt iframe {
        width: 100%;
        height: 600px;
    }

.first_video_twitch {
    width: 100%;
    font-size: 0;
}

.twitch_l {
    display: inline-block;
    width: calc(100% - 424px);
    height: 600px;
    background-color: #fff;
}

.twitch_v {
    width: 100%;
    height: 50%;
  background-color: #fa0;
}

.twitch_v_info {
    width: 100%;
    height: 50%;
  background-color: #a0f;
}

.twitch_c {
    display: inline-block;
    width: 424px;
    height: 600px;
  background-color: #e0f;
}

    .twitch_v img, .twitch_c img {
        width: 100%;
    }

@media screen and (min-width:801px) and (max-width:1200px) {
    .first_video_twitch {
        width: 130%;
        margin: 0px -18%;
    }

    .twitch_l {
        display: inline-block;
        width: calc(100% - 424px);
        height: 500px;
        background-color: #fff;
    }

    .twitch_c {
        display: inline-block;
        width: 424px;
        height: 500px;
        background-color: rgb(175, 30, 30);
    }
}

@media screen and (min-width:401px) and (max-width:800px) {
    .twitch_l, .twitch_c {
        width: 100%;
        display: block;
    }

    .twitch_l {
        height: 500px;
    }

    .twitch_v_info {
        height: 40%;
    }

    .twitch_v {
        height: 60%;
    }

    .twitch_c {
        height: 300px;
    }
}

@media screen and (max-width:400px) {
    .twitch_l, .twitch_c {
        width: 100%;
        display: block;
    }

    .twitch_l {
        height: 400px;
    }

    .twitch_v_info {
        height: 40%;
    }

    .twitch_v {
        height: 60%;
    }

    .twitch_c {
        height: 300px;
    }
}

.index_title {
    width: 50%;
    margin: 35px auto;
}

    .index_title img {
        width: 100%;
    }

.RWD_index_title {
    display: none;
    width: 50%;
    margin: 60px auto 30px;
}

    .RWD_index_title img {
        width: 100%;
    }

.index_content h2 span {
    font-size: 2rem;
    font-weight: bolder;
}

.date {
    color: #a2a2a2;
}

/*-------------熱門影片區----跟拍記錄區------*/

.hot_video_a, .behind_a {
    box-sizing: border-box;
    width: 100%;
    margin: auto;
    padding: 10px;
}

.hot_video, .behind_video {
    width: 31%;
    display: inline-block;
    margin: 0 10px;
    box-sizing: border-box;
    position: relative;
    background-color: #fff;
    vertical-align: top;
}

    .hot_video img, .behind_video img {
        width: 100%;
    }

    .hot_video h3, .behind_video h3 {
        font-size: 1.5rem;
        padding: 0 15px;
        line-height: 2;
        color: #00dae8;
        font-weight: bolder;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .hot_video p, .behind_video p {
        padding: 0 15px;
        line-height: 1.5;
        margin: 10px auto;
    }

    .hot_video .c, .behind_video .c {
        height: 75px;
        overflow: hidden;
    }

.play_btn {
    width: 20%;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%);
    cursor: pointer;
}

    .play_btn img {
        width: 100%;
        opacity: 0.7;
    }

    .play_btn:hover.play_btn img {
        opacity: 1;
    }

.all_video {
    width: 20%;
    margin: 3% auto;
}

    .all_video a {
        display: block;
    }

    .all_video img {
        width: 100%;
    }

/* -----------about--------- */

.about {
    text-align: center;
    font-size: 2rem;
    vertical-align: middle;
    line-height: 2;
    font-weight: bolder;
}

.host_head {
    display: inline-block;
    width: 80px;
}

.yam_logo {
    display: inline-block;
    width: 160px;
}

.about_btns {
    text-align: center;
    margin: 3% auto;
}

    .about_btns a {
        display: block;
    }

.channel_btn, .sponsor_btn {
    width: 20%;
    margin: 0 40px;
    display: inline-block;
}

    .channel_btn img, .sponsor_btn img {
        width: 100%;
    }

/* -----------------主持人與來賓----------------- */

.host_area {
    box-sizing: border-box;
    width: 100%;
    margin: auto;
    padding: 10px;
}

.host_info {
    width: 31%;
    height: 450px;
    display: inline-block;
    margin: 0 10px;
    box-sizing: border-box;
    position: relative;
    background-color: #fff;
    vertical-align: top;
}

.host_pic {
    width: 100%;
}

.host_info h3 {
    font-size: 1.6rem;
    padding: 0 15px;
    line-height: 2;
    color: #00dae8;
    font-weight: bolder;
    text-align: center;
}

.host_info p {
    padding: 0 15px;
    line-height: 1.5;
    margin: 10px auto;
    height: 146px;
    overflow: hidden;
}

.identity {
    width: 60px;
    position: absolute;
    top: -30px;
    right: 10px;
}

/* ------------------工作人員---------------------- */

.team_area {
    width: 80%;
    margin: 0 auto;
}

.team_l, .team_r {
    width: 49%;
    display: inline-block;
}

.staff {
    width: 80%;
    margin: 5px auto;
    font-size: 1.5rem;
    text-align: center;
}

    .staff label {
        display: inline-block;
        width: 35%;
        text-align: right;
    }

    .staff p {
        width: 50%;
        display: inline-block;
        padding: 0 20px;
        margin: 10px 0;
        text-align: left;
    }

/* ---------------廣告頁----------- */

.ad {
    margin: 20px auto;
    width: 100%;
}

    .ad img {
        width: 100%;
    }

/*--------------------------------- 首頁RWD------------------------------------ */

@media screen and (min-width:1481px) and (max-width:1799px) {
    footer a {
        width: 25%;
    }

    footer img {
        width: 100%;
        vertical-align: middle;
    }
    /* footer p {
        width: 60%;
       
    } */
}

@media screen and (min-width:1281px) and (max-width:1480px) {
    .staff {
        font-size: 1.4rem;
    }

    footer img {
        width: 100%;
        vertical-align: middle;
    }

    footer p {
        width: 60%;
        display: inline-block;
        vertical-align: middle;
        font-size: 1.2rem;
        color: #fff;
        line-height: 2;
        margin: 0 20px;
    }
}

@media screen and (min-width:1081px) and (max-width:1280px) {
    .staff label {
        width: 45%;
        text-align: right;
    }

    .staff p {
        width: 50%;
        padding: 5px 0px;
        text-align: left;
    }

    .staff {
        width: 100%;
        font-size: 1.4rem;
        text-align: left;
    }

    .hot_video, .behind_video {
        margin: 0 5px;
    }

    .play_btn {
        top: 16%;
    }

    .host_info {
        margin: 0 8px;
    }
}

@media screen and (min-width:769px) and (max-width:1080px) {


    .index_content {
        max-height: none;
    }

    .first_video_yt iframe {
        width: 100%;
        height: 450px;
    }

    .index_title {
        margin: 0 auto 35px;
    }

    .doll_1 {
        left: 5%;
    }

    .doll_2 {
        right: 5%;
    }

    .host_info {
        margin: 0 5px;
        height: 400px;
    }

    .hot_video, .behind_video {
        margin: 0 5px;
    }

        .hot_video h3, .behind_video h3 {
            font-size: 1.2rem;
            padding: 0 10px;
            line-height: 1.8;
        }

    .play_btn {
        top: 15%;
    }

    .about {
        text-align: center;
        font-size: 1.5rem;
        vertical-align: middle;
        line-height: 2;
        font-weight: bolder;
    }

    .all_video {
        width: 15%;
        margin: 3% auto;
    }

        .all_video a img {
            width: 100%;
        }

    .channel_btn, .sponsor_btn {
        width: 20%;
    }

        .channel_btn a img, .sponsor_btn a img {
            width: 100%;
        }

    .staff {
        width: 100%;
        font-size: 1.2rem;
        text-align: left;
    }

        .staff label {
            width: 45%;
            text-align: right;
        }

        .staff p {
            width: 53%;
            padding: 5px 0px;
            text-align: left;
        }

    .share {
        width: 5%;
    }

    .menu {
        width: 86%;
    }

    footer {
        width: 80%;
        text-align: center;
    }

        footer a {
            width: 20%;
        }

        footer p {
            font-size: 0.9rem;
            line-height: 1.5;
            margin: 0 0 0 10px;
        }
}

@media screen and (min-width:500px) and (max-width:768px) {
    .container {
        width: 90%;
    }

    .container1 {
        width: 90%;
        height: 630px;
    }

    header {
        width: 110px;
        left: 0;
        transform: translate(10px, 10px);
    }

    .p_area {
        width: 90%;
        height: auto;
        margin: 0 auto;
        padding: 80px 0 0 0;
    }

    .p01 {
        padding: 5% 0% 0%;
    }

    .p08 {
        padding: 0% 0%;
    }

    .logo {
        width: 100%;
        float: none;
    }

    .menu {
        display: none;
    }

    .RWD_menu_icon {
        display: block;
        z-index: 5;
    }
    /*側邊SNS區域*/
    .share {
        width: 100%;
        left: 50%;
        bottom: 0%;
        transform: translateX(-50%);
        top: auto;
        z-index: 2;
        background-color: #219e9e75;
        text-align: center;
    }

        .share a {
            width: 5%;
            display: inline-block;
            margin: 0 10px;
        }

        .share img {
            width: 100%;
            margin: 10px auto;
        }

    .index_content {
        width: 100%;
        max-height: none;
        position: relative;
        top: 0%;
        transform: translateY(-0%);
        z-index: 2;
    }

    .index_title {
        display: none;
    }

    .RWD_index_title {
        display: block;
        width: 35%;
        margin: 30px auto;
    }

    .first_video_yt iframe {
        width: 100%;
        height: 400px;
        margin: 100px auto;
    }

    .hot_video_a, .behind_a, .host_area {
        width: 90%;
    }

    .hot_video, .behind_video {
        width: 100%;
        display: block;
        margin: 20px auto;
        padding-bottom: 10px;
    }

    .play_btn {
        top: 18%;
    }

    .all_video {
        width: 45%;
        margin: 3% auto 40%;
    }

        .all_video img {
            width: 100%;
        }

    .about {
        font-size: 1.3rem;
        line-height: 1.5;
    }

    .yam_logo {
        width: 130px;
        margin: 0 10px;
    }

    .host_head {
        width: 40px;
    }

    .about_btns {
        text-align: center;
        margin: 15% auto 40%;
    }

    .channel_btn, .sponsor_btn {
        width: 45%;
        margin: 20px auto;
        display: block;
    }

    .host_info {
        width: 100%;
        height: auto;
        display: block;
        margin: 20px auto 50px;
        padding-bottom: 10px;
    }

    .team_area {
        width: 100%;
    }

    .team_l, .team_r {
        width: 100%;
        display: block;
        margin: 20px auto;
    }

    .staff {
        width: 100%;
        font-size: 1.2rem;
    }

        .staff label {
            display: inline-block;
            width: 50%;
            text-align: center;
        }

        .staff p {
            width: 45%;
            display: inline-block;
            padding: 0 0px;
            text-align: left;
        }

    .ad {
        margin: 40px auto 30px;
    }

    .doll {
        width: 15%;
        position: fixed;
        bottom: 0%;
        z-index: 1;
    }

    .doll_1 {
        left: 5%;
    }

    .doll_2 {
        right: 5%;
    }

    footer {
        width: 80%;
    }

        footer a {
            width: 20%;
        }

        footer p {
            width: 75%;
            font-size: 0.8rem;
            line-height: 2;
            margin: 0 0 0 10px;
        }
}

@media screen and (max-width:499px) {
    .container {
        width: 90%;
    }

    /* ----------------- */
    .container1 {
        padding: 10px 0px;
        height: 400px;
    }

    .p_area {
        width: 90%;
        height: auto;
        margin: 0 auto;
        padding: 10px 0 0 0;
    }

    .p01 {
        padding: 5% 0% 0%;
    }

    .p08 {
        padding: 0% 0 0%;
    }

    .logo {
        width: 25%;
        float: left;
    }

    .menu, .index_title {
        display: none;
    }
    /*側邊SNS區域*/
    .share {
        width: 100%;
        left: 50%;
        bottom: 0%;
        transform: translateX(-50%);
        top: auto;
        z-index: 2;
        background-color: #219e9e75;
        text-align: center;
    }

        .share a {
            width: 8%;
            display: inline-block;
            margin: 0 10px;
        }

        .share img {
            width: 100%;
            margin: 5px auto;
        }

    .RWD_menu_icon {
        display: block;
        z-index: 5;
    }

    .index_content {
        width: 100%;
        max-height: none;
        position: relative;
        top: 0%;
        transform: translateY(-0%);
        z-index: 2;
    }

    .RWD_index_title {
        display: block;
        width: 40%;
        margin: 15px auto;
    }

    .first_video_yt iframe {
        width: 100%;
        height: 300px;
        margin: 80px auto;
    }

    .hot_video_a, .behind_a, .host_area {
        width: 100%;
    }

    .hot_video, .behind_video {
        width: 100%;
        display: block;
        margin: 15px auto;
        padding-bottom: 3px;
    }

        .hot_video h3, .behind_video h3 {
            font-size: 1.2rem;
            padding: 0 10px;
        }

        .hot_video p, .behind_video p {
            padding: 0 10px;
        }

    .play_btn {
        top: 18%;
    }

    .all_video {
        width: 50%;
        margin: 3% auto 25%;
    }

        .all_video img {
            width: 100%;
        }

    .about {
        font-size: 1.3rem;
        line-height: 1.5;
    }

    .yam_logo {
        width: 100px;
        margin: 0 10px;
    }

    .host_head {
        width: 40px;
    }

    .about_btns {
        text-align: center;
        margin: 15% auto 30%;
    }

    .channel_btn, .sponsor_btn {
        width: 50%;
        margin: 20px auto;
        display: block;
    }

    .host_info {
        width: 100%;
        height: auto;
        display: block;
        margin: 20px auto 30px;
        padding-bottom: 5px;
    }

        .host_info h3 {
            font-size: 1.4rem;
        }

        .host_info p {
            padding: 0 15px 10px 15px;
            line-height: 1.5;
            margin: 2px auto;
        }

    .identity {
        width: 40px;
        top: -20px;
    }

    .team_area {
        width: 100%;
    }

    .team_l, .team_r {
        width: 100%;
        display: block;
        margin: 20px auto;
    }

    .staff {
        width: 100%;
        font-size: 1rem;
    }

        .staff label {
            display: inline-block;
            width: 50%;
            text-align: center;
        }

        .staff p {
            width: 45%;
            display: inline-block;
            padding: 0 0px;
            text-align: center;
        }

    .ad {
        width: 100%;
        margin: 20px auto;
    }

    .doll {
        width: 15%;
        position: fixed;
        bottom: 0%;
        z-index: 1;
    }

    .doll_1 {
        left: 5%;
    }

    .doll_2 {
        right: 5%;
    }

    footer {
        width: 80%;
    }

        footer a {
            width: 20%;
        }

        footer p {
            width: 74%;
            font-size: 0.5rem;
            line-height: 1.5;
            margin: 0 0 0 10px;
        }
}
              
            
!

JS

              
                //  選單上XXX錨點跳轉,按了無用
$(document).ready(function () {
  var width = $(window).width();
  // console.log(width);
  var height = $(window).height();
  let moving = false;
  let n = 1;
  if (width > 850 ) {
    var num_li = $(".hide_nav li").length;//偵測我們有幾個標點(區塊)
    var max_num_li = num_li - 1;  //最後一個點
    //滾動滑鼠滾輪時,移動到上一頁、下一頁的效果
    if (num_li > 0) {   //如果點有大於0個時再來跑以下程式(因為其他頁面不用一頁滾動)
      // ----test1
      var lastscrollTop = 0;

      $(".container1").on('mousewheel DOMMouseScroll', function (e) {
        if (moving) {
          return;
        }
        moving = true;
        console.log(moving)
        setTimeout(() => {
          const down = e.originalEvent.deltaY > 0;
          if (down && n === num_li) {
            moving = false;
            return;
          }
          if (!down && n === 1) {
            moving = false;
            return;
          }        
          n += (down ? 1 : -1)
          console.log(n);
          $(".container1").animate({ scrollTop:  $(".container1").scrollTop() + $(`.p0${n}`).position().top }, () => {
            moving = false;
            console.log(moving)
          })
        }, 0);
      });
    //選單RWD切換
    $(".RWD_menu_icon").click(function (e) {
        $(".RWD_menu").show(500);
    });
    $(".RWD_closbtn").click(function () {
        $(".RWD_menu").hide(500);
    });
    }
  }
    $('.menu_li').click(function(e) {
      const targets = ['#first_video', '#popular_video', '#about_program', '#host_s', '', '', '#staff_team'];
      const to = $(this).children('a').attr('href');
      const position = targets.indexOf(to)
      if (position) {
        n = position + 1;
      }
    });
});








              
            
!
999px

Console