viewport

Using 100vw causes horizontal cropping when vertical scrollbars are present

ⅰ亾dé卋堺 提交于 2019-12-13 00:44:37
问题 I'm trying to build a website template where the main #content div is 75% the width of the screen, and centered on the page, but I also want to occasionally have sections that span the full width of the viewport. The way I've accomplished this is by applying a class of .full-width on these sections that overrides the margins of the #content div by setting the width to 100vw, as well as some other properties that you can see in the CSS below. The problem is that, when enough content is on the

Change tablet viewport to exactly show fixed dimension element

最后都变了- 提交于 2019-12-12 18:52:38
问题 I have an HTML element that is exactly 1000px wide and 850px high (it's actually an iFrame containing an HTML5 game on a canvas tag, but I'm hoping that won't matter). I want the element presented on a tablet so that the viewport scales to always show the whole element, and nothing more. So when the tablet is held in landscape mode, you would expect blank space either side; while in portrait mode there would be blank space below (and above?). In testing on an iPad2, the portrait mode seems to

website on ipad portrait view

谁都会走 提交于 2019-12-12 17:08:22
问题 My site doesn't appear correctly in an ipad - portrait mode. It appears fine in landscape mode but when I turn it into portrait mode I end up with a messy website. All elements scattered all over the site. How can I fix this? Please help me. here's the link to my site: inclouds.co.uk Here's my html code: <div id="header"> <div class="block1"> <a>InClouds Hosted Business Services<br /><br /> </a><br /> <strong><ul> <li>Hosted Desktops & Servers </li> <li>Hosted IP Telephony</li> <li>Hosted

extjs apps on iphone

廉价感情. 提交于 2019-12-12 15:44:20
问题 This is an extjs single-page application which works fine in FF, IE, and Safari. There are several problems with viewing or using this extjs app in the iphone. The extjs panels/windows do not resize, as it would in a normal screen. When the user zooms out, the expanding viewing area is blanked out. An example image is below: Iphone does not recognize the combo box of the extjs. Unable to scroll down. Viewport Issue: The main issue is with the viewport. It does not scroll or zoom properly in

移动端布局终极解决方案 ---- hotcss

邮差的信 提交于 2019-12-12 14:17:39
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 距离上一次发文貌似有段时间了,可能是最近项目太忙,也可能是变懒了。。总之不管什么原因,开始我们今天的主题:移动端终极解决方案--- hotcss(https://github.com/imochen/hotcss) ! 介绍 hotcss不是一个库,也不是一个框架。它是一个移动端布局开发解决方案。使用hotcss可以让移动端布局开发更容易。 使用动态的HTML根字体大小和动态的viewport scale。 遵循视觉一致性原则。在不同大小的屏幕和不同的设备像素密度下,让你的页面看起来是一样的。 优势 保证不同设备下的统一视觉体验。 不需要你再手动设置viewport,根据当前环境计算出最适合的viewport。 支持任意尺寸的设计图,不局限于特定尺寸的设计图。 支持单一项目,多种设计图尺寸,专为解决大型,长周期项目。 提供px2rem转换方法,CSS布局,零成本转换,原始值不丢失。 有效解决移动端真实1像素问题。 用法 在head标签中引入hotcss.js文件,注意hotcss.js文件必须放在css文件之后引入。 hotcss默认以640px的设计稿来计算html根字体大小,通过以下代码计算出在320px的屏幕下,html根元素字体大小的值: 在320px的屏幕下html根元素的字体大小为20px

Mobile-friendly web design: How to programmatically zoom out after text input?

筅森魡賤 提交于 2019-12-12 12:09:01
问题 I've got a webpage that looks and functions okay in both desktop and mobile browsers IMO, but I've been unable to solve a particular UX functionality. When a user clicks/taps on a text field for searching, the mobile browsers zoom to the text box for data entry.. This is good and I want to keep it! ..but how do I reset the page scale/zoom/transform afterward? I want to zoom out programmatically after the user stops typing.. But nothing I've Googled and/or tried has worked. Of note: If you

Fixing site size in FireFox vs Chrome on large screens

放肆的年华 提交于 2019-12-12 10:47:52
问题 It seems that Gecko, Trident and Webkit have a different way of displaying web pages on high resolution screens. Webkit browsers like Chrome and the new Opera will zoom the page out to match the pixel resolution of the screen. However, this might make small text very hard to read. Firefox and Internet Explorer, on the other hand, seem to have some default size, and if the resolution is bigger, they will pretend the screen has a lower resolution, and instead use the extra pixels to enhance

load different views into viewport

烈酒焚心 提交于 2019-12-12 09:24:05
问题 I am using a main viewport. I use the north panel for buttons. When i click on a button i want to load a panel in the center region. I made some views in architect allready. mainviewport Ext.define('MyApp.view.MyViewport', { extend: 'Ext.container.Viewport', layout: { type: 'border' }, initComponent: function() { var me = this; Ext.applyIf(me, { items: [ { xtype: 'container', height: 65, region: 'north', items: [ { xtype: 'button', height: 50, maxHeight: 50, maxWidth: 50, minHeight: 50,

How to move from one view to another view using viewport in sencha?

蹲街弑〆低调 提交于 2019-12-12 09:11:56
问题 In my application I have a one view with topbar and some fields. In this button when I am click the login button I want to move to another view (Dashboard) which is a tabview. So for this I am using viewport. But I am unable to move from one view to another. Here is my code: app.js Ext.Loader.setConfig({ enabled : true }); Ext.application({ views : ['TitlePanel', 'dashboardpanel'], models : [ 'MyModel', 'wishlistmodel' ], stores : [ 'name', 'wishlistsummarystore' ], name : 'MyApp',

How to do viewport sizing and scaling for cross browser support?

天涯浪子 提交于 2019-12-12 09:10:50
问题 Basically what I'm trying to do is get my viewport width the same on all mobile browsers and make sure the user cannot zoom in or out (scale). The mobile browsers that don't seem to support this correctly are: Windows phone 8 IE10 Android native browser Android Firefox browser The following line of code works on all mobile browsers except the one from the company that rejects standards as usual (IE, in this case IE10 Mobile): <meta name="viewport" content="width=620, user-scalable=no" /> I