Web phone interface Absolute Positioning resolution expands resulting in confusion problems and block-level element rotation angle CSS

Source: Internet
Author: User

First, the head added consciousness is proportional scaling

When doing it, I found some problems:

Before setting the body background picture for no-repeat width 100% is fixed to the parent container for position:relative;

Then define the div position:absolute you want to do;

But found that the resolution of the Web phone is larger, positioning according to the location of the image is confused.

For example IPhone5 resolution for 320*568 Samsung is S4 resolution for 340*640 if you don't want to locate the disorder,

You can set the background picture background-size: Width and height, no more than the width of the resolution,

such as Apple's background-size:320px;

Block-level element rotation angle CSS:-o-transform:rotate ( -20deg); -webkit-transform:rotate ( -20DEG); -moz-transform:rotate ( -20DEG);

Web phone interface Absolute Positioning resolution expands resulting in confusion problems and block-level element rotation angle CSS

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.