Home > Web Front-end > HTML Tutorial > 为什么宽度设置为100%以后,移动设备上没有填充完?_html/css_WEB-ITnose

为什么宽度设置为100%以后,移动设备上没有填充完?_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:04:17
Original
1480 people have browsed it

如图:


回复讨论(解决方案)

ps:除了body,head的背景宽度是百分比,其他地方的图片宽度我都设置为固定宽的,最大宽度为主题部分的1280px;,难道是因为移动端的屏幕像素不超过1007px?

 我试了下没出现问题~
只是有在移动端显示的效果不是很好~
应该要加上这个吧

<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
Copy after login
Copy after login

我试了下没出现问题~
只是有在移动端显示的效果不是很好~
应该要加上这个吧

<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
Copy after login
Copy after login


没出现问题是因为我当时发现,我当时就改了~
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