mobile

Google Chrome Mobile Emulator: How to show on screen keyboard

青春壹個敷衍的年華 提交于 2020-01-11 15:18:51
问题 I'm debugging a mobile version of our website through Chrome's Mobile Emulation tool, but cannot figure out how to have an on-screen keyboard pop up when selecting a text field. I have clicked on the text box, but no keyboard pops up. If I do this on a mobile device, the default input method (keyboard) pops up and allows me to type. Is there a way to replicate this? 回答1: Update: Elevating important comments by Ray Foss and Rafael S. Fijalkowski... 🙁 Virtual keyboard support is deprecated in

Mobile Redirect to desktop version using htaccess

送分小仙女□ 提交于 2020-01-11 14:06:23
问题 I have a website called www.example.com I have a mobile website called m.example.com firstly i want to redirect automatically from desktop version to mobile site (if it is mobile only.. i want to detect all mobile versions) then I want to use an htaccess to automatically redirect the main website URL to the mobile version.. However, there is a link on the mobile version that points back to the main website called www.example.com/?nm=1 ( nm mean nomobile ) i want to set cookie for this one..

how to detect when user is using mock location chrome browser [duplicate]

纵饮孤独 提交于 2020-01-11 13:40:15
问题 This question already has answers here : How to get client's IP address using JavaScript? (50 answers) IP to Location using Javascript (13 answers) Closed 8 months ago . Is there a way to detect when user is mocking his location in chrome browser (mobile and desktop)? Tried googling but i only see how to actually mock and how to detect in native mobile app. 回答1: Refer to this question to see how to get the client's IP address. Most of the services mentioned in that question will also return

HTML - White lines around images on email. (Resolution problem?)

浪子不回头ぞ 提交于 2020-01-11 13:35:15
问题 I Designed and sliced up an emailer in Photoshop but noticed there was a 1px white line around all of the individual images at some resolutions. On my desktop it's totally free of lines, but if I inspect on some mobile resolutions they will show up. Also if I'm viewing on some mobile resolutions and zoom from like 100% to 150% it will show the lines again? Through my reading it seems I should perhaps make the slice height divisible by 4, which none of them are. That alone seems like a

手机发送短信

僤鯓⒐⒋嵵緔 提交于 2020-01-11 12:21:36
1 public class Phone 2 { 3 /// <summary> 4 /// 日志 5 /// </summary> 6 public static readonly ILog Log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 7 8 9 public static readonly string ServerAddress = ConfigurationManager.AppSettings["PhoneServerAddress"]; 10 public static readonly string Account = ConfigurationManager.AppSettings["PhoneUserName"]; 11 public static readonly string Pswd = ConfigurationManager.AppSettings["PhonePassword"]; 12 13 /// <summary> 14 /// 发送手机短信 15 /// </summary> 16 /// <param name="mobile">手机号</param> 17 /// <param name="content">内容</param> 18 //

Google Maps API v3: custom markers not clickable on mobile devices

会有一股神秘感。 提交于 2020-01-11 06:36:11
问题 We have a site that uses Google Maps API v3 to display a bunch of markers on the map. The markers are clickable, and open a standard Google Maps info popup. This works great on all desktop browsers. But for some reason, I can't make it work on any mobile device that I've tested (a variety of Android and iOS devices). The markers simply don't respond to clicks. I've narrowed it down to our custom markers. If I remove the code that loads our custom marker images using new google.maps

Font size in portrait vs. landscape on mobile devices

雨燕双飞 提交于 2020-01-11 05:42:08
问题 I am developing a mobile website but have encountered this problem - a font size of 14px is displaying much larger in landscape than in portrait. However, it seems to be based on the fact that the Div size is set to 100% so in landscape it is obviously wider. What I don't understand is why that should affect the size of the font given that 14px isn't a relative size but a fixed one? Is there an explanation for this that I am missing? Appreciate any answers (so long as you don't tell me I'm an

JQuery Mobile Beta 1 is not resizing the screen on iphone when rotated to landscape

大憨熊 提交于 2020-01-11 03:07:16
问题 I am writing mobile app with JQUery Mobile Beta 1 and was expecting that the screen should adjust automatically on iphone when rotated from portrait to landscape and vice versa but it is not happening. I simply checked with opening this link (Beta 1 doc demo) http://jquerymobile.com/demos/1.0b1/docs/pages/page-template.html but it is also not adjusting the screen. Am I missing something? EDIT: It seems to be same for Beta 2. I checked the demos & docs iPhone and it behaves similarly. I need

get speed limits from OpenStreetMap

孤街浪徒 提交于 2020-01-10 10:07:34
问题 I'm creating a mobile app that determines if someone if a good driver. The phone sits on the dashboard and collects GPS information while the user is driving. I need to determine a way if the driver is following the speed limit, and I would like to do this via OpenStreetMap. What is the best way to get speed limits from OpenStreetMap? 回答1: You can make a Web request to get your answer. Here is one (try it as a browser URL) of a small box where you're supposed to be: www.overpass-api.de/api

get speed limits from OpenStreetMap

不羁的心 提交于 2020-01-10 10:06:25
问题 I'm creating a mobile app that determines if someone if a good driver. The phone sits on the dashboard and collects GPS information while the user is driving. I need to determine a way if the driver is following the speed limit, and I would like to do this via OpenStreetMap. What is the best way to get speed limits from OpenStreetMap? 回答1: You can make a Web request to get your answer. Here is one (try it as a browser URL) of a small box where you're supposed to be: www.overpass-api.de/api