opera

How to do a Chrome/Opera specific stylesheet?

纵饮孤独 提交于 2019-11-28 04:23:50
I need to do chrome/opera hacks because of a font replacement script wanted by the client that breaks things... this is sad but everything is working in IE6-7, FF2-3 and Safari. I have no way of fixing the script itself, I can only hack around it using CSS and HTML. I'm trying to do something in the lines of : <!--[if IE 6]> <link rel="stylesheet" href="ie6.css" type="text/css" media="screen" /> <![endif]--> Is it possible? I saw this way of doing chrome specific fixes like: body:nth-of-type(1) .elementOrClassName { /* properties go here */ } Is this working? Is there a simpler way? What about

Uploadify inside Jquery UI Dialog => Chrome & Opera bugs

半腔热情 提交于 2019-11-28 03:08:12
问题 I have the following code: <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" media="screen" href="jquery-ui-1.8.9.custom.css" /> <script type="text/javascript" src="jquery-1.5.min.js"></script> <script type="text/javascript" src="jquery-ui-1.8.9.custom.min.js"></script> <script type="text/javascript" src="jquery.uploadify.js"></script> </head> <body> <script type="text/javascript"> manualLightboxContent = function () { $("#dialogContent").html($('#module_wrapper').html());

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

纵饮孤独 提交于 2019-11-28 01:56:07
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. Opera does not yet support onbeforeunload. Opera's onunload support is incomplete - for example, it does not fire when you close a

CSS alternative for display:box for IE and Opera?

一世执手 提交于 2019-11-28 01:21:01
I am using display:box for a flexible width div with three boxes of equal size and with equal spacing. This works fine for Firefox, Safari and Chrome, but not in IE and Opera. I am wondering what the best alternative method for IE and Opera would be. Here is the display:box CSS: .box { display: -moz-box; display: -webkit-box; display: box; width: 100%; } .box1, .box2, .box3 { -moz-box-flex: 1; -webkit-box-flex: 1; box-flex: 1; width: 0; } .box2, .box3 { margin-left: 20px; } And the HTML: <div class="box"> <div class="box1"></div> <div class="box2"></div> <div class="box3"></div> </div> You can

onbeforeunload in Opera

我的梦境 提交于 2019-11-28 00:50:40
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 onbeforeunload is now supported in Opera 15 based on the WebKit engine but not in any prior versions based on Presto. Opera does not support window.onbeforeunload at the moment. It will be supported in some future version, but has not

Print iframe content in Opera and Chrome

戏子无情 提交于 2019-11-28 00:14:36
I'm trying to print iframe content. contentWindow.focus(); contentWindow.print(); This code works in IE, Firefox and Safari. But don't work in Chrome and Opera. These browsers print entire page. I tried to use this topic How do I print an IFrame from javascript in Safari/Chrome . But it didn't help me. Could someone help me? This is a known bug in Opera. In addition to the above ideas for workarounds, you may want to play with something like this: var clone=document.documentElement.cloneNode(true) var win=window.open('about:blank'); win.document.replaceChild(clone, win.document.documentElement

window.resize is not working in chrome and opera

家住魔仙堡 提交于 2019-11-27 22:25:12
window.resize is not working in chrome and opera ..how to make it work? There is no window.resize() ...however... There are: window.resizeTo(width, height) window.resizeBy(x, y) Important notes: You can't resize a window or tab that wasn’t created by window.open . You can't resize a window or tab when it’s in a window with more than one tab . Also, even if you create window by window.open(...) it is not resizable by default ...see 4. To make window created by window.open() resizable, you must open it with resizable feature Example of how to create external window with "resizable" feature:

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

こ雲淡風輕ζ 提交于 2019-11-27 16:25:11
问题 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

How can you create a CSS3 gradient in Opera?

被刻印的时光 ゝ 提交于 2019-11-27 13:08:15
问题 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')

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

蹲街弑〆低调 提交于 2019-11-27 09:12:03
问题 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? 回答1: I've been using some simple CSS and it seems to