mobile-webkit

iPhone iOS will not display box-shadow properly

為{幸葍}努か 提交于 2019-11-28 17:45:08
The Design The contact form on a responsive design has input fields with both an inset shadow and regular outside shadow. See image below. The Code input { background:#fff; height:auto; padding:8px 8px 7px; width:100%; box-sizing:border-box; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; border:#fff solid 3px; border-radius:4px; box-shadow:0px 0px 5px rgba(0, 0, 0, .25), inset 2px 2px 3px rgba(0, 0, 0, .2); } The Issue iOS v4+ does not display the box-shadow properly. See image below. Tested I have attempted using -webkit-box-shadow. -webkit-box-shadow:0px 0px 5px rgba(0, 0, 0, .25

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

风流意气都作罢 提交于 2019-11-28 15:30:59
问题 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" /> 回答1: 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,

Javascript date parsing on Iphone

泄露秘密 提交于 2019-11-28 04:59:42
I'm working on an offline capabable Javascript site that targets mobile devices. One such mobile device is the IPhone. I'm trying to parse a date from our REST API (a member of JSON object). I'm using Date.parse("2010-03-15 10:30:00"); This works on Android devices, however on IPhone it just gives an invalid date. How do I need to format my date string so it can be parsed by the IPhone? Not all browsers support the same date formats. The best approach is to split the string on the separator characters ( - , and : ) instead, and pass each of the resulting array items to the Date constructor:

@font-face not working in mobile Webkit

二次信任 提交于 2019-11-28 04:46:29
I'm having trouble getting @font-face to behave in any mobile Webkit browser I've tested--Safari on an iPhone 3GS, the default Android 2.2 browser, and Dolphin browser on Android. It works in all desktop browsers, from IE7 to IE9, FF3.5, Safari 4, and Opera. The fonts and CSS are from FontSquirrel: @font-face { font-family: 'LeagueGothicRegular'; src: url('../fonts/League_Gothic-webfont.eot'); src: local('☺'), url('../fonts/League_Gothic-webfont.woff') format('woff'), url('../fonts/League_Gothic-webfont.ttf') format('truetype'), url('../fonts/League_Gothic-webfont.svg#webfontFHzvtkso') format(

How to flip background image using CSS?

廉价感情. 提交于 2019-11-27 16:46:46
How to flip any background image using CSS? Is it possible? currenty I'm using this arrow image in a background-image of li in css On : visited I need to flip this arrow horizontally. I can do this to make another image of arrow BUT I'm just curious to know is it possible to flip the image in CSS for :visited You can flip it horizontally with CSS... a:visited { -moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); filter: FlipH; -ms-filter: "FlipH"; } jsFiddle . If you want to flip vertically instead... a:visited { -moz-transform: scaleY(-1

iPhone iOS will not display box-shadow properly

佐手、 提交于 2019-11-27 10:26:57
问题 The Design The contact form on a responsive design has input fields with both an inset shadow and regular outside shadow. See image below. The Code input { background:#fff; height:auto; padding:8px 8px 7px; width:100%; box-sizing:border-box; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; border:#fff solid 3px; border-radius:4px; box-shadow:0px 0px 5px rgba(0, 0, 0, .25), inset 2px 2px 3px rgba(0, 0, 0, .2); } The Issue iOS v4+ does not display the box-shadow properly. See image

iOS5 Images disappear when scrolling with webkit-overflow-scrolling: touch

老子叫甜甜 提交于 2019-11-27 07:38:37
I had previously been using iScroll plugin but wanted to drop it for the native behaviour. The initial implementation was using webkit-overflow-scrolling: auto; however I updated this to ... webkit-overflow-scrolling: touch .. to enable the motion/inertia on the touch scroll. The issue with this is the list items contained within the navigation disappear completely when scrolling, and only return once the momentum has come to a rest. An example of this can be seen here Mark Napthine I have had the same problem in the past, if you need to use positioned elements try adding -webkit-transform:

@font-face not working in mobile Webkit

天大地大妈咪最大 提交于 2019-11-27 05:26:09
问题 I'm having trouble getting @font-face to behave in any mobile Webkit browser I've tested--Safari on an iPhone 3GS, the default Android 2.2 browser, and Dolphin browser on Android. It works in all desktop browsers, from IE7 to IE9, FF3.5, Safari 4, and Opera. The fonts and CSS are from FontSquirrel: @font-face { font-family: 'LeagueGothicRegular'; src: url('../fonts/League_Gothic-webfont.eot'); src: local('☺'), url('../fonts/League_Gothic-webfont.woff') format('woff'), url('../fonts/League

Mobile Webkit reflow issue

隐身守侯 提交于 2019-11-26 22:48:42
问题 I've been experiencing an issue in mobile versions of webkit (specifically Webkit 534.46 on iOS 5.1.1 as mobile Safari, and now Chrome for iOS) which doesn't happen on any desktop browser that I've seen. (i.e. the demos below should be viewed on a mobile version of webkit.) Here is a live example of the issue. The core of the CSS is extremely straight forward. It positions an alphabet index along the left of the page: #index { left:0; margin:0; padding:0; position:fixed; top:0; width:3em; }

Custom bullet symbol for <li> elements in <ul> that is a regular character, and not an image

南楼画角 提交于 2019-11-26 21:26:23
I realize one can specify a custom graphic to be a replacement bullet character, using CSS attribute: list-style-image And then giving it a URL. However, in my case, I just want to use the '+' symbol. I don't want to have to create a graphic for that and then point to it. I'd rather just instruct the unordered list to use a plus symbol as the bullet symbol. Can this be done or am I forced to make it a graphic first? TJ WealthEngine API Evangelist The following is quoted from Taming Lists : There may be times when you have a list, but you don’t want any bullets, or you want to use some other