Basic settings for mobile-responsive

Source: Internet
Author: User

Here is the basic configuration blue bold increase green background part is the most important, the other is the auxiliary

1 @charset "Utf-8";2 HTML{3 font-size:625%;4}5 body,h1,h2,h3,h4,p,ul,ol,form,fieldset,figure{6 margin:0;7 padding:0;8}9 Body{Ten Background-color:#fff; One font-family:"Helvetica Neue", Helvetica, Arial, "Microsoft Yahei UI", "Microsoft Yahei", Simhei, "\5b8b\4f53", SimSun, Sans-seri F; A font-size:. 16rem; -} - Ul,ol{ the List-style:outside None None; -} - a{ - text-decoration:None; +} - img{ + Display:Block; A Max-width:100%; at} - div,figure,figcaption{ - box-sizing:Border-box; -} - . None{ - Display:None; in} - . Clearfix:after{ to content:'. '; + Display:Block; - Clear:both; the Height:0; * Visibility:Hidden; $}

Here is the test code

.45rem means 45px

.16rem means 16px

If you need to set the 1px red solid border of the response, you can write------border:solid. 01rem #f00;

Note: REM is a new unit of CSS3 and is a unit of relative root element, which can be consulted for details.

1 Panax Notoginseng #header{2 width:100%;3 Height:. 45rem;4 Background-color:#333;5 font-size:0.16rem;6 position:fixed;7 Top:0;8 Z-index:9999;9  $}

Basic settings for mobile-responsive

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.