CSS submit button weird rendering on iPad/iPhone
Oops! I just found this myself. Just add this line on any element you need: -webkit-appearance: none;
Oops! I just found this myself. Just add this line on any element you need: -webkit-appearance: none;
Update: I think there’s an even easier way to do this, depending on your application. Instead of having multiple images, if you simply have one <img> element or Image object (or maybe two, like a ‘this’ image and a ‘next’ image if you need animations or transitions) and simply update the .src, .width, .height and … Read more
This is a late answer, but I just came across this… To get the indenting correct on any lines that wrap, try it this way: ul { list-style: none; margin-left: 0; padding-left: 0; } li { padding-left: 1em; text-indent: -1em; } li:before { content: “+”; padding-right: 5px; }
FOR ANDROID: You only need to enable “USB remote debugger” within your android device and plug with a USB cable. Then open your application in the device. Chrome will detect the remote browser and you can see the console in the same way than you see it when you use Chrome locally. Use this link: … Read more
The context menu has its own event. You just need to catch it and stop it from propagating. window.oncontextmenu = function(event) { event.preventDefault(); event.stopPropagation(); return false; };
Here are a few ways to disable selection: Add the following to your mobile web documents <style type=”text/css”> * { -webkit-touch-callout: none; -webkit-user-select: none; /* Disable selection/copy in UIWebView */ } </style> Programmatically load the following Javascript code: NSString * jsCallBack = @”window.getSelection().removeAllRanges();”; [webView stringByEvaluatingJavaScriptFromString:jsCallBack]; Disable the Copy / Paste user menu: – (BOOL)canPerformAction:(SEL)action withSender:(id)sender … Read more