Compatibility issues for different browsers and different resolutions_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:47:44
Original
1618 people have browsed it

My resolution is 1920*1080, and the website is centered. When I switch to a computer with a resolution of 1024*768, some sections are tilted to the right. Is there any attribute that can automatically scale for different resolutions?


Reply to discussion (solution)

Take a look at responsive design

Reference http://www.360doc.com/content /13/0219/12/21412_266515627.shtml

Use percentages in the properties of the box model, such as
width:30%
padding:2% 5%

Solved, what I want is centered, margin:0 auto; This is solved, thank you everyone

Then don’t use px, try to use % to define the width

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template