简体   繁体   English

如何让我的固定宽度移动网站始终显示“完全放大”?

[英]how can I get my fixed-width mobile website to always appear “fully zoomed in”?

how can I get my fixed width site to always appear "fully zoomed in" on webkit (iphone and android) browsers? 如何让我的固定宽度网站始终在webkit(iphone和android)浏览器上“完全放大”?

right now, it looks fine on an iPhone and "too small/zoomed out" on an Android phones that have higher resolution. 现在,它在iPhone上看起来很好,在具有更高分辨率的Android手机上“太小/缩小”。

i'm trying this viewport: 我正在尝试这个视口:

 <meta name="viewport" content="user-scalable=yes, width=device-width, target-densityDpi=device-dpi, initial-scale=1.0" />

The following worked for me. 以下对我有用。 The page gets scaled down for medium and low density devices. 对于中低密度设备,页面按比例缩小。 Android 2.2 has some issues with handling meta tags. Android 2.2在处理元标记时存在一些问题。

<meta name="viewport" content="width=device-width, target-densitydpi=high-dpi" />

尝试更改“initial-scale = xx”数字,直到它看起来正确:

 <meta name="viewport" content="user-scalable=yes, target-densityDpi=device-dpi, initial-scale=1.6" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使我的网站宽度完全适合 iphone 5? - How can I make my website width fit fully on iphone 5? 如何使用user-scalable = yes在android,iphone中为布局视口保持固定宽度; 使用jQuery Mobile - How do I maintain fixed-width for layout viewport in android, iphone, with user-scalable=yes; using jQuery Mobile 默认情况下,我的网站会在手机上缩小 - Get my website to be zoomed out by default on mobile phones 如何通过视口使我的网站宽度适合移动设备的大小? - How can I fit my Website width to mobile devises' size with viewport? 我的移动响应网站始终显示最小的CSS宽度视图-可能是什么原因造成的? - My mobile responsive website always displays the smallest CSS width view - What might be causing this? 如何使数字键盘始终出现在uiview中? - How can I keep the number pad always appear in uiview? 使用自动版式时,如何使UICollectionView与设备的宽度相同? - How can I get my UICollectionView to be the same width as my device when using Auto Layout? 如何使UIView的子类出现在Interface Builder中? - How do I get my subclass of UIView to appear in Interface Builder? 如何在转换后的UIView上重新绘制缩放的文本? - How can I redraw zoomed text on a transformed UIView? 如何使可视键盘出现在UIToolBar上方? - How can I make visual keyboard appear above my UIToolBar?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM