Based on html5 and css3 responsive full-screen scrolling page switching, html5css3

Source: Internet
Author: User

Based on html5 and css3 responsive full-screen scrolling page switching, html5css3

Share a full-screen responsive HTML5 and CSS3 page switch. This page layout effect is very useful for websites and apps that require a fixed 100% height and width. As follows:

Download Online Preview source code

HTML

The class of wrapper div is st-container, which contains the radio used as the navigation button and the st-scroll panel used for page switching.

<div class="st-container">                <input type="radio" name="radio-set" checked="checked" id="st-control-1"/>    <a href="#st-panel-1">Serendipity</a>        <input type="radio" name="radio-set" id="st-control-2"/>    <a href="#st-panel-2">Happiness</a>        <input type="radio" name="radio-set" id="st-control-3"/>    <a href="#st-panel-3">Tranquillity</a>        <input type="radio" name="radio-set" id="st-control-4"/>    <a href="#st-panel-4">Positivity</a>        <input type="radio" name="radio-set" id="st-control-5"/>    <a href="#st-panel-5">Passion</a>        <div class="st-scroll">        <section class="st-panel" id="st-panel-1">            <div class="st-deco" data-icon="H"></div>            

We need to change the Panel height so that the corresponding panel is displayed on the screen when you click the navigation button. You can use the sibling selector to obtain the correct panel when you click the button. We need to place the radio button and st-scroll on the same layer of the dom structure and on the top of the hyperlink (the transparency of the hyperlink will be set to 0 to make it invisible ). To select the Panel correctly, we also need to provide an id for each panel and the radio button. For CSS code, see the css file in the downloaded file.

Via: http://www.w2bc.com/Article/26057

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.