mobile

Responsive design - Media Query not working on iPhone?

一世执手 提交于 2019-12-18 11:09:17
问题 I am trying to create a mobile friendly version of my website, to make my website responsive to a smaller screen size and scale accordingly. I've created some media queries, that behave correctly in a browser when resizing on a desktop. On my iPhone, safari just shrinks the entire website but still maintains the aspect ratio of the full sized site. How do I get the media query to be observed? have I missed something? Here is a link to a sandbox which I am trying to get working correctly - any

Position fixed on chrome mobile causing element to move on scroll up/down

狂风中的少年 提交于 2019-12-18 10:53:53
问题 I'm facing this strange issue that looks like a bug on Chrome mobile. I have a div with position:fixed; aligned to the top right corner of the screen. On desktop, it works fine (it stays in place), in mobile, however, the div is moving when I scroll up or down. I made a video to explain it better: https://www.youtube.com/watch?v=gCgN6ULkcMg On scroll up works fine on scroll down, a piece of the div with position:fixed disappears outside the viewport I tried to isolate the problem on a fiddle,

Screen and Mobile Stylesheets

喜欢而已 提交于 2019-12-18 10:53:30
问题 I've looked through the stack overflow topics on this question, as well as some google search results but I can't seem to solve my issue. I've created a stylesheet for mobile devices(mobile.css) which is essentially a copy of my main.css with changes to many of the attributes. When I load only mobile.css as the stylesheet it looks great on my iPhone, just how I want it to. However when I put both in, I am getting a mix of both, but more of the main.css Any idea why? <head> <link rel=

Best Open Source WURFL alternative [closed]

此生再无相见时 提交于 2019-12-18 10:42:12
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I am looking to do some device detection in PHP and I am looking into a few options. The one that looks the best right now is WURFL http://wurfl.sourceforge.net/. But I am very leery of it because of its non open source license. I am also wondering if it is even relevant

JS library (with drag n drop) compatible with iOS and regular browsers

独自空忆成欢 提交于 2019-12-18 10:13:10
问题 Does anyone know of a JS framework that has drag and drop functionality and is compatible with mobile (iOS) and regular browsers? I currently have a web-based app and it is a hassle to make its drag'n'drop functionality work on iOS... I wish there was one that would do it for both... 回答1: Here's two built in jQuery: http://www.stevefenton.co.uk/cmsfiles/assets/File/mobiledragdrop.html http://code.google.com/p/jquery-ui-for-ipad-and-iphone/ There is also the jquery mobile framework (which does

Mobile version of views for Ruby on Rails

孤者浪人 提交于 2019-12-18 10:00:49
问题 I'm after some validation that I'm doing the right thing. I have my Ruby on Rails application in the following structure: /home about.rhtml index.rhtml /display index.rhtml /data <--This is called by jQuery from the display\index page to provide the data to render push.js.erb pull.js.erb /layout home.rhtml display.rhtml Everything is working fine, but I now want to add a site targeted for mobile devices. While the iPhone renders the website correctly, it would be nice to provide a more

Mobile version of views for Ruby on Rails

人走茶凉 提交于 2019-12-18 10:00:04
问题 I'm after some validation that I'm doing the right thing. I have my Ruby on Rails application in the following structure: /home about.rhtml index.rhtml /display index.rhtml /data <--This is called by jQuery from the display\index page to provide the data to render push.js.erb pull.js.erb /layout home.rhtml display.rhtml Everything is working fine, but I now want to add a site targeted for mobile devices. While the iPhone renders the website correctly, it would be nice to provide a more

Why does Twitter Bootstrap Use Pixels for Font Size?

孤者浪人 提交于 2019-12-18 09:57:27
问题 Given that Twitter Bootstrap is designed to be responsive / device-friendly, why doesn't it use relative font sizes? 回答1: Well it seems that they are hiding behind the browser zoom excuse. Really sad to see such a heavily used and influential framework completely ignore accessibility issues and a fundamental cornerstone of responsive design. They are in a position of great responsibility and unfortunately seem to have no intention of acting accordingly. [Update] So today Mark Otto replied on

Cheapest way to send SMS for number verification? [closed]

∥☆過路亽.° 提交于 2019-12-18 09:54:55
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . My application needs to verify phone numbers that are provided by the user. What is the absolute cheapest way to send an SMS to a

Opening a PDF with Xamarin Forms

◇◆丶佛笑我妖孽 提交于 2019-12-18 09:46:47
问题 I have a pdf i've added as an AndroidAsset and a BundleResource for my Android and IOS projects using xamarin forms. I just want to be able to open those files from any device, using whatever pdf viewer the device defaults to. Essentially, i just want to be able to do something like: Device.OpenUri("file:///android_asset/filename.pdf"); but this doesn't seem to work. Nothing happens and the user is never prompted to open the pdf. I don't want to use any 3rd party libraries that allow the pdf