opera

Opera and Custom cursor in CSS

☆樱花仙子☆ 提交于 2019-11-27 02:33:08
问题 Where I normally am verry proud of Opera for implementing everything CSS really correct it seems that implementing a custom cursor with the following line doesn't seem to work cursor:url("../pics/merge.gif"); The URL is correct since it works for regular background-image properties. Works in other browsers, but not in Opera. Any ideas? 回答1: There is a workaround for opera using javascript: http://plugins.jquery.com/project/customcursor works ok, tested in opera 11, though I'd recommend usual

Bottom of custom font cut off in Opera and webkit

半城伤御伤魂 提交于 2019-11-27 01:55:19
问题 I'm using a custom font in a page I'm developing, Droid Sans, and at certain font sizes, the bottom is cut off, but only in Opera and webkit browsers. It's easy to reproduce on Google's own webfonts page looking for Droid Sans and showing the whole alphabet at 18px: http://www.google.com/webfonts It's especially clear for the lower case g . Is there some css trick / hack I can use to increase the line height / show the whole character or am I really limited to only certain sizes of the font?

How can I check if the browser support HTML5 file upload (FormData object)?

不羁岁月 提交于 2019-11-27 00:43:01
问题 How can I check if the browser support HTML5 file upload (FormData object)? var fd = new FormData(); Following the answer from this post, but the code does not return correct answer about the browser, window.onload = function() { if (!!window.FileReader) { alert('supported'); } else { alert('not supported'); } } Firefox - supported Chrome - supported Opera - supported Safari - not supported IE9 - not supported But the correct browser support should be, Firefox - supported Chrome - supported

cross-browser Onunload and Onbeforeunload ? (particularly opera 11)

一笑奈何 提交于 2019-11-26 22:02:42
问题 I have a form and I must notice user with alert() on exiting page while there are data in the form that had not been send. I've read that opera has a lot of problems with this. Opera 11 that is, because I need take into account only last version. So again, the alert should display on refresh, closing a tab, or closing whole browser. It would be nice to set event directly to the <form> element that would be launched on anything that leads to destroying this element. 回答1: Opera does not yet

onbeforeunload in Opera

情到浓时终转凉″ 提交于 2019-11-26 21:47:37
问题 I'm using the code that netadictos posted to the question here. All I want to do is to display a warning when a user is navigating away from or closing a window/tab. The code that netadictos posted seems to work fine in IE7, FF 3.0.5, Safari 3.2.1, and Chrome but it doesn't work in Opera v9.63. Does anyone know of way of doing the same thing in Opera? Thx, Trev 回答1: onbeforeunload is now supported in Opera 15 based on the WebKit engine but not in any prior versions based on Presto. 回答2: Opera

How do you stop Chrome and Opera sorting JSON objects by Index ASC?

泪湿孤枕 提交于 2019-11-26 20:13:13
I've got a problem. Using ajax I sent a correctly formed JSON object using: $.ajax({ type: "POST", url: SITE_URL+'/data.php', dataType: "json", data: { ajax: 1 }, success: function(data) { console.log(data); } }); However, Opera and Chrome, although receiving the same object, print out the object in an incorrect order, it seems like they both perform a sort by ID number instead of just leaving it alone! Is there a way to stop this auto sort? Edit, after finding out it is a sort by index number I'm thinking the best method might be to not use the index for storing the object_id and instead

Detect left mouse button press

馋奶兔 提交于 2019-11-26 14:15:00
问题 I hate this mess with the mouse buttons created by W3C an MS! I want to know if the left mouse button is pressed when I get a mousedown event. I use this code // Return true if evt carries left mouse button press function detectLeftButton(evt) { // W3C if (window.event == null) { return (evt.button == 0) } // IE else { return (evt.button == 1); } } However, it does not work in Opera and Chrome, because it so happens that window.event exists there too. So what do I do? I have some browser

How can I zoom an HTML element in Firefox and Opera?

浪尽此生 提交于 2019-11-26 10:39:03
问题 How can I zoom an HTML element in Firefox and Opera? The zoom property is working in IE, Google Chrome and Safari, but it’s not working in Firefox and Opera. Is there any method for adding this property to Firefox and Opera? 回答1: Try this code, this’ll work: -moz-transform: scale(2); You can refer to this. 回答2: Zoom and transform scale are not the same thing. They are applied at different times. Zoom is applied before the rendering happens, transform - after. The result of this is if you take

How to make CSS visible only for Opera

帅比萌擦擦* 提交于 2019-11-26 08:51:50
问题 Is there a way to make some CSS rules visible only for Opera (9.5 +)? 回答1: This hack works for the latest Opera: @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) { #id {css rule} } It doesn't touch any other browser as far as i tested, but this may be actual for several months, with web technologies boom etc. 回答2: works great for Opera 10.63 noindex:-o-prefocus, .class { color:#fff; } 回答3: With pure CSS hack you might be unable to safely

How do you stop Chrome and Opera sorting JSON objects by Index ASC?

孤街醉人 提交于 2019-11-26 07:30:01
问题 I\'ve got a problem. Using ajax I sent a correctly formed JSON object using: $.ajax({ type: \"POST\", url: SITE_URL+\'/data.php\', dataType: \"json\", data: { ajax: 1 }, success: function(data) { console.log(data); } }); However, Opera and Chrome, although receiving the same object, print out the object in an incorrect order, it seems like they both perform a sort by ID number instead of just leaving it alone! Is there a way to stop this auto sort? Edit, after finding out it is a sort by