mobile-webkit

Input elements on android 4.x can not be styled when focused

*爱你&永不变心* 提交于 2019-12-03 05:20:38
Update: There is a fix: -webkit-user-modify: read-write-plaintext-only; Original question: I am trying to boil this down to a simple example: I have a simple input element like this: <input class="myclass" type="text"/> the style looking like: .myclass, .myclass:focus { background-color: black; } this works fine on android 2.x and 3.x (except some devices that are known not to respect css on focused input elements) Since I updated a nexus S to 4.0.3 I can`t get the input field to accept any styles. Some testing revealed the following: The styles are actually applied, but for some reasons the

HTML5 contenteditable attribute not working properly on iOS7 Mobile Safari

丶灬走出姿态 提交于 2019-12-02 22:51:37
It seems that the contenteditable attribute (which worked fine on iOS6) has stopped working on iOS7 webkit. Though the browser seems to recognize the field as editable, and brings up the keyboard, any input seems to close it, or it fails to register. Any encounter the same problem, or have any workarounds? You can try it out over here - http://html5demos.com/contenteditable Thanks! I ran into this problem today. The solution for me was to set user-select to " text " in the CSS for any editable elements: * { -webkit-user-select: none; user-select: none; } input, textarea, [contenteditable] {

Using Viewport to create a mobile friendly version

限于喜欢 提交于 2019-12-01 04:41:47
I'm working on a site, but I want a mobile friendly version aswell. I'm a newbie to this. Someone suggested I should use the following code, to which I can't find many relating question on here: <meta name="viewport" content="width=320, initial-scale=1"> The problem is that I have no idea how to implement it, and I know that cannot simply convert the whole page. What I am requesting is some pointers on how I can reach my goal. http://dev.opera.com/articles/view/an-introduction-to-meta-viewport-and-viewport/ gives you an introduction to the various aspects of the viewport meta tag. For

Using Viewport to create a mobile friendly version

孤街醉人 提交于 2019-12-01 02:10:44
问题 I'm working on a site, but I want a mobile friendly version aswell. I'm a newbie to this. Someone suggested I should use the following code, to which I can't find many relating question on here: <meta name="viewport" content="width=320, initial-scale=1"> The problem is that I have no idea how to implement it, and I know that cannot simply convert the whole page. What I am requesting is some pointers on how I can reach my goal. 回答1: http://dev.opera.com/articles/view/an-introduction-to-meta

Android/Mobile Webkit CSS Background-Attachment:Fixed Not Working?

a 夏天 提交于 2019-11-30 19:53:18
Am I just going crazy, or does background-attachment:fixed; really not work in the native Android browser? I already implemented a simple fix by using two divs instead of one... The first div is positioned absolutely and contains the fixed background image, the other div goes on top of it and contains the scrolling content. The issue with this fix (aside from the unnecessary complication) is that for some reason, when I am scrolling the content over the background image div, the background image disappears altogether! :( Has anyone else found a workaround that isn't buggy, or how exactly are

Android Webkit: Absolutely positioned elements don't respect z-index

99封情书 提交于 2019-11-30 10:47:31
问题 Nasty little bug, this one. As illustrated in Android ticket 6721, the Android browser seems to not respect z-index when absolutely positioned elements are laid over the top of <a> or <input> tags. I am desperate for any sort of workaround. Has anybody conquered this one before? Thanks in advance! 回答1: This problem is probably related to controls and their being special for the browser. While looking at your problem (in chromium) I found a related problem that when you press the tab key you

Android/Mobile Webkit CSS Background-Attachment:Fixed Not Working?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 04:22:17
问题 Am I just going crazy, or does background-attachment:fixed; really not work in the native Android browser? I already implemented a simple fix by using two divs instead of one... The first div is positioned absolutely and contains the fixed background image, the other div goes on top of it and contains the scrolling content. The issue with this fix (aside from the unnecessary complication) is that for some reason, when I am scrolling the content over the background image div, the background

How to make bevel and Embosed effect to button in CSS 3 for web-kit based browsers?

房东的猫 提交于 2019-11-29 19:37:38
How to make bevel and Embosed effect to Submit button in CSS 3 ? Like this. Enlarged Image I'm only considering Web-kit based browsers. and I'm not asking about How to give round corner and how to give gradient to button, I'm only asking about bevel effect Html <input type="submit" value="Submit your entry" class="input" /> methodofaction This is possible without the use of extra mark-up through the use of multiple box-shadows: box-shadow: 0 1px 2px #fff, /*bottom external highlight*/ 0 -1px 1px #666, /*top external shadow*/ inset 0 -1px 1px rgba(0,0,0,0.5), /*bottom internal shadow*/ inset 0

HTML5 video behavior on mobile devices

喜夏-厌秋 提交于 2019-11-29 01:50:22
I am building a site where I have several <video> elements (looped animations) that act as part of my design (not as an actual video). This works quite well in desktop browsers, yet I am in trouble on mobile devices. When I display the site on Android or iOS devices (ie. mobile webkit) I will get the OS's video player appearance and the videos will open in some sort of popup when I click them. I do know that I can bypass the autoplay restrictions by doing sth like: window.onload = function() { var pElement = document.getElementById("myVideo"); pElement.load(); pElement.play(); }; But this will

Meta Tag “apple-mobile-web-app-capable” for Android?

萝らか妹 提交于 2019-11-28 20:09:01
问题 Is there a way to create an Android Web Application like on the iPhone? Using the "apple-mobile-web-app-capable" meta tag in the head element of an HTML page, it informs the Apple iOS that the application can be installed to the users springboard so that it starts the Safari Mobile browser without a menu bar. 回答1: Chrome on Android now supports a meta-tag mobile-web-app-capable: Since Chrome M31, you can set up your web app to have an application shortcut icon added to a device's homescreen,