mobile-safari

URL fragment being sent to server on iOS 10.0.2 Safari

你离开我真会死。 提交于 2020-01-16 17:56:27
问题 This should not be possible, right? whatsmybrowser.org/b/X5USL5N 回答1: I think what happened was that the link (which was shared on Skype) had it's # encoded to %23 and was therefore still sent to the server. Apache decoded it and displayed the error as /#/ instead of /%23/ So probably a Skype/iOS bug. 来源: https://stackoverflow.com/questions/40011506/url-fragment-being-sent-to-server-on-ios-10-0-2-safari

No antialiasing for iOS 8 safari webgl

為{幸葍}努か 提交于 2020-01-16 05:06:13
问题 Safari on iOS 8 supporting webgl is surely a good news but after I run my demo I find that there is no antialiasing. Any solutions? 回答1: role you own? There's lots of ways to anti-alias. Here's one. First check that you're not already anti-aliased var gl = someCanvas.getContext("webgl"); var contextAttribs = gl.getContextAttributes(); if (!contextAttribs.antialias) { // do your own anti-aliasing } The simplest way would be to make your canvas's backing store larger than it's displayed.

No antialiasing for iOS 8 safari webgl

徘徊边缘 提交于 2020-01-16 05:04:26
问题 Safari on iOS 8 supporting webgl is surely a good news but after I run my demo I find that there is no antialiasing. Any solutions? 回答1: role you own? There's lots of ways to anti-alias. Here's one. First check that you're not already anti-aliased var gl = someCanvas.getContext("webgl"); var contextAttribs = gl.getContextAttributes(); if (!contextAttribs.antialias) { // do your own anti-aliasing } The simplest way would be to make your canvas's backing store larger than it's displayed.

Check if viewport zoomed

风格不统一 提交于 2020-01-16 02:51:23
问题 Is there an easy way to check whether the user scaled the page (using pinch on mobile devices)? Thought verge.js would help, but I don't know what I can compare viewportH with. 回答1: You can compare the screen.width to the window.innerWidth. If the value is anything other than 1, the viewport has been zoomed. viewportScale = screen.width / window.innerWidth; alert(viewportScale); References: https://developer.mozilla.org/en-US/docs/Web/API/Window.screen https://developer.mozilla.org/en-US/docs

Check if viewport zoomed

左心房为你撑大大i 提交于 2020-01-16 02:51:09
问题 Is there an easy way to check whether the user scaled the page (using pinch on mobile devices)? Thought verge.js would help, but I don't know what I can compare viewportH with. 回答1: You can compare the screen.width to the window.innerWidth. If the value is anything other than 1, the viewport has been zoomed. viewportScale = screen.width / window.innerWidth; alert(viewportScale); References: https://developer.mozilla.org/en-US/docs/Web/API/Window.screen https://developer.mozilla.org/en-US/docs

Why is there a visible gap between adjacent DIVs on iOS Safari?

怎甘沉沦 提交于 2020-01-15 09:55:12
问题 After pulling all my hair out it has come down to this minimal html page that seems to be rendering wrongly on iOS: <!doctype html> <html> <head> <style type="text/css"> #fold { background:url(https://s3.amazonaws.com/gigantt_pub_imgs/2012/07/1342078193.png) top left; min-height:350px; } #features { background:url(https://s3.amazonaws.com/gigantt_pub_imgs/2012/07/1342078193.png) top left; min-height:350px; } </style> </head> <body> <div id="fold"> </div> <div id="features"> </div> </body> <

z-index not working very well in ipad

痴心易碎 提交于 2020-01-14 08:36:10
问题 I am building a site for a friend (http://pasionesargentas.com/sm/) with the fullscreen gallery with thumbnail flip (http://tympanus.net/codrops/2011/02/09/fullscreen-gallery-with-thumbnail-flip/). I didn't quite like the idea of the flip thing so I simply preferred to disable it and add a menu instead. The menu div css is something like #top { position:fixed; background: transparent; display: block; z-index: 99999; } It works fine in Chrome, Safari, Explorer and Opera. But for some reason

Autoplay audio with iOS 5 Mobile Safari, any workarounds left?

给你一囗甜甜゛ 提交于 2020-01-14 04:16:11
问题 We all know Apple doesn't allow autoplay on html5 audio tags with Mobile Safari. The workaround for iOS 4 was to use an iframe with an mp3 src. Apple seems to have patched this on iOS 5. <html> <body> iframe mp3 autoplay test <iframe src='iframe.mp3' width='0px' height='0px' scrolling='no'></iframe> </body> </html> This works on iOS 4.3.1, but not on 5.0.1. Any workarounds left, or has Apple finally patched all the autoplay loopholes? 回答1: The answer might be inside of this post here, of

Open files from Safari with “Open in” in my app

风流意气都作罢 提交于 2020-01-13 22:44:17
问题 I need to be able to open any file from Safari in my app via the "Open in" feature. My app will appear in the "Open in"-list when I try to open any file in mail-app or another custom app, but my app won't appear in Safari. Why? What I did: I specified following stuff in my plist: Added a new row named: "Document types" Opened node "Item 0" Specified value "All files" for "Document Type Name" Opened node "Document Content Type UTIs" Added two rows For "Item 0" I specified "public.data" For

Open files from Safari with “Open in” in my app

安稳与你 提交于 2020-01-13 22:42:27
问题 I need to be able to open any file from Safari in my app via the "Open in" feature. My app will appear in the "Open in"-list when I try to open any file in mail-app or another custom app, but my app won't appear in Safari. Why? What I did: I specified following stuff in my plist: Added a new row named: "Document types" Opened node "Item 0" Specified value "All files" for "Document Type Name" Opened node "Document Content Type UTIs" Added two rows For "Item 0" I specified "public.data" For