opera

jQuery animate scrolltop on Opera bug

為{幸葍}努か 提交于 2019-11-29 07:47:27
问题 Has anyone tried using $(“html, body”).animate({scrollTop:0}, 'slow'); on Opera browser? It does a weird effect especially if you scroll on a long page, it seems like the page go first to the top and then it scroll down to the right point. It is a weird disturbing effect... Is there any workaround to fix it? thanks 回答1: The attribute was not defined properly in the past. It was introduced by IE, I think, then reverse engineered to be implemented by different user agents. It has been since

Is there a workaround to Safari's/Opera's bug that you can't tab through hyperlinks?

一世执手 提交于 2019-11-29 05:41:14
问题 In IE, Firefox, Chrome and most Windows-based interfaces that I've used, the Tab key can be used to navigate from one form field or hyperlink to the next (e.g. "actionable" items) ( note: I have not tested on other Operating Systems ) However Safari and Opera skip all hyperlinks in a web page when tabbing. IMHO its a usability bug but I digress. Is there a workaround/hack to make Safari and/or Opera navigate through these links? I've noticed that Opera will accept the tabindex attribute if

flex和box兼容性写法

﹥>﹥吖頭↗ 提交于 2019-11-29 03:15:34
本文转载于: 猿2048 网站 flex和box兼容性写法 display : -webkit-box ; /* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */ display : -moz-box ; /* Firefox 17- */ display : -webkit-flex ; /* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */ display : -moz-flex ; /* Firefox 18+ */ display : -ms-flexbox ; /* IE 10 */ display : flex ; /* Chrome 29+, Firefox 22+, IE 11+, Opera 12.1/17/18, Android 4.4+ */ 来源: https://my.oschina.net/u/4191619/blog/3100395

How to prevent form submission while using HTML5 client-side form validation in Opera 11?

此生再无相见时 提交于 2019-11-29 02:03:45
How to prevent form submission while using HTML5 client-side form validation in Opera 11? Here is a sample test page: <section> <h2>Test</h2> <form> <input type="text" name="test" id="test" required/> <input type="submit" value="Test" /> </form> </section> Validation works in Opera 11, but when the button is clicked after entering a value, the browser submits the form. I want the browser to stay on the webpage always, which is good for client-side-only scripts, on the local hard drive, where there is no server, for example. When I add return false; or try to prevent the form from submitting,

How to determine the Opera browser using JavaScript

倾然丶 夕夏残阳落幕 提交于 2019-11-29 01:14:27
I want to determine that the browser of the client machines in Opera or not using JavaScript, how to do that? The navigator object contains all the info you need. This should do: navigator.userAgent.indexOf("Opera"); Now that Opera uses the Chrome rendering engine, the accepted solution no longer works. The User Agent string shows up like this: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.52 Safari/537.36 OPR/15.0.1147.132 The only identifier for Opera is the OPR part. Here's the code I use , which should match the old Opera or the new

Is there user-select for Opera 10.62 and IE9?

微笑、不失礼 提交于 2019-11-29 00:51:43
问题 I have been trying to apply user-select for both Opera 10.62 and IE9 without success. I can't/won't bind events with JavaScript that preventDefault() , because there are so many places to be set unselectable and I still need to retain selections in several places. In fact, I want the default behavior to be unselectable for the whole document, and as for that I have set the following in my stylesheet: * { -o-user-select: none; -webkit-user-select: none; -moz-user-select: -moz-none; -khtml-user

HTML5 - cache manifest working great on Chrome but not on Firefox and Opera

允我心安 提交于 2019-11-28 23:03:19
I am developing a web app for offline use, thus I need to use the application cache functionality. Everything works great on Chrome (15.0.874.106) but is doesn't work on Firefox (7.0.1) and Opera (11.52). This is my cache manifest file cache.manifest.php (I have reduced it to the bare minimum): <?php header("Cache-Control: max-age=0, no-cache, no-store, must-revalidate"); header("Pragma: no-cache"); header("Expires: Wed, 11 Jan 1984 05:00:00 GMT"); header('Content-type: text/cache-manifest'); ?>CACHE MANIFEST CACHE: /app/common/css/reset.css /favicon.ico And this is the first 4 lines of the

Wingdings font family does not seem to work on Firefox and Opera

╄→гoц情女王★ 提交于 2019-11-28 22:30:18
I was using the Wingdings font in the CSS for some symbols like a pencil and a home icon. It worked on IE, Chrome and Safari but not in Firefox and Opera. I googled it but did not find any better solution. Why doesn't it work in Firefox? I do need to use those icons, is there any way to use Wingdings in Firefox? Mozilla and Opera are standard-compiliant. Wingdings is not standard (what a surprise coming from Microsoft) because not mapped to Unicode, and so should never be used on a website. However, do not despair, most symbols are available in Unicode : check http://www.alanwood.net/demos

How can you create a CSS3 gradient in Opera?

吃可爱长大的小学妹 提交于 2019-11-28 20:45:20
I can create CSS gradients in IE6/7/8/9/FF3.6+ and Chrome (see below). My question is: How would one create a gradient in Opera? .gradient{ /*Mozilla Firefox 3.6*/ background-image: -moz-linear-gradient(top, #dcdcdc, #c6c6c6); /*Webkit aka Google Chrome*/ background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #c6c6c6),color-stop(1, #dcdcdc)); /*Internet Explorer 6,7 and 8*/ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dcdcdc', endColorstr='#c6c6c6'); /*Internet Explorer 8 only*/ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='

How to remove the arrows from input[type=“number”] in Opera [duplicate]

柔情痞子 提交于 2019-11-28 15:33:24
This question already has an answer here: Can I hide the HTML5 number input’s spin box? 14 answers Just looking to remove these arrows, convenient in certain situations. I would like to preserve the browser's awareness of the content being purely numeric however. So changing it to input[type="text"] is not an acceptable solution. Now that Opera is webkit based, this question is a dulpicate of: Can I hide the HTML5 number input’s spin box? JayD I've been using some simple CSS and it seems to remove them and work fine. input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit