cross-browser

jQuery selector does not work in IE7/8

人走茶凉 提交于 2019-12-31 07:29:06
问题 Does anyone know why this would not work in IE7/8? drop_area = $('div#drop_area'); It works perfectly in IE9, FF2/3, and Chrome. Internet Explorer 7/8 gives the following error: SCRIPT438: Object doesn't support this property or method Edit: This is the HTML that goes with my javascript: http://pastebin.com/nwxx8RzW 回答1: The code you've shown on pastebin has numerous global variable issues. In other words, you are coding assuming that variables you are declaring are local in scope, whereas in

Accessing a local Azure app from a Virtual PC for cross browser testing

余生长醉 提交于 2019-12-31 04:43:09
问题 I'm using version 1.6 of the Windows Azure SDK. As I understand it, the emulated load balancer listens on 127.0.0.1 and the instances of the web apps are created at 127.255.0.[0,1...]. I need to do cross browser testing as I develop, so I created a load of Virtual machines via Virtual PC and Oracle VirtualBox with different browser configs. Unfortunately, I don't seem to be able to access the emulated load balancer nor the separate instances from any of the virtual machines as everything is

safari cookie issue

安稳与你 提交于 2019-12-31 04:26:06
问题 I am pulling my hair out on this. It works on chrome and Firefox but not in safari. What am I doing wrong? I am setting up a temp cookie and then check if it is set or not. When I clear all the cookies from safari, and then I run this file, it thinks that cookie is still there. here is the code setcookie("testcookie", 'cookiesetting temporary'); if(isset($_COOKIE['testcookie'])){ echo "cookie set": }else{ echo "no cookie set"; } In safari only, after disabling the cookies and removing all the

Cross-browser handling the “Enter” key pressing using Javascript

拥有回忆 提交于 2019-12-31 03:59:05
问题 I have got the following sample, that easily detects the "Enter" key pressing and handles it correctly. Here it is: <!DOCTYPE html> <html> <head> <title>keyCode example</title> <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $("#search-input").keyup(function (event) { event = event || window.event; if (event.keyCode == 13 || event.which == 13) { $("#search-button").click(); } }); $("

How is it possible to use aural style sheets on elements?

人盡茶涼 提交于 2019-12-31 03:55:10
问题 Just searched the Net and came up with the following codes..When I run them on Firefox4 and Safari, I don't seem to hear anything..How can I fix this? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> @media aural { h1, h2, h3, h4, h5, h6 { voice

Are there any arbitrary restrictions on maximum image pixel size in IE and Webkit mobile?

☆樱花仙子☆ 提交于 2019-12-31 03:38:06
问题 A recent project made use of very pixel-large (~5e3px2) but still byte-small (~100kb — GIF) images, which both IE8 and iOS Safari refused to render. Both seem aware of the image size, but simply do not render them. A practical solution is to slice the image, but are there any documented arbitrary restrictions on maximum image pixel size for these browsers? 回答1: Mobile Safari has a 3-megabit buffer for non JPG images. Anything larger than that will not display. Calculate size = w * h * 8 for

What browsers currently support the 'range' input?

拈花ヽ惹草 提交于 2019-12-30 18:59:28
问题 I can't seem to find anything on google about this. I know you can pretty much rule out IE. I know webkit supports it but what else do you know? 回答1: At the time of writing, apparently (Desktop) Safari, Chrome and Opera support range inputs, according to Dive Into HTML5. 回答2: Ok, this question has been here quite a while, but I wanted to add this anyway. Regarding a question about browser support, a good source is always the caniuse.com website. In this case, you can find the current, past

Flexbox item with overflowing content only works on Chrome

天大地大妈咪最大 提交于 2019-12-30 17:56:53
问题 Please take a look at this pen: https://codepen.io/linck5/pen/gRKJbY?editors=1100 body{ margin: 0;} .container { width: 100%; height: 100vh; display: flex; flex-direction: column; } .top-bar { background-color: darksalmon; height: 50px; } .inner-container { flex: 1; background-color: chocolate; width: 100%; height: 100%; display: flex; flex-direction: column; } .top { background-color: blueviolet; flex: 1; overflow: auto; font-size: 40px; line-height: 5rem; } .bottom { background-color:

Padding doesn't work on select tags in Safari [duplicate]

二次信任 提交于 2019-12-30 17:36:27
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: padding is not working in Safari and IE in select list So I have a basic select tag like so: <select> <option>1</option> <option>2</option> <option>2</option> </select> But if I put padding on select tag, it doesn't work on Safari: select { padding: 6px; } On IE7, I understand, but on Safari? Is there a way to get around this? 回答1: Answered previously here: https://stackoverflow.com/a/2967371/181002 Webkit has

html5 for IE8 or less

 ̄綄美尐妖づ 提交于 2019-12-30 12:21:29
问题 I re-build my website with HTML5 tags Its working fine with FF,Chorme, and IE9 Its not working with IE8 or less. Do you know if there are any accentuation for IE8 (or less)? this is the website (Hebrew lang): http://www.switchbook.co.il Thank you al in advanced, Roi 回答1: Use HTML5 Shiv to add compatibility back to older browsers. http://code.google.com/p/html5shiv/ 回答2: Add this javascript to your site and it should work fine in IE 6, 7 and 8 https://github.com/aFarkas/html5shiv 回答3: IE8 and