cross-browser

$(window).height() issues in IE and FF

☆樱花仙子☆ 提交于 2019-12-01 19:41:25
I wrote a script to make a dynamic sized div (#table) inside my page. I also have a menu (#menu) with a nav inside that establishes the min-height. In Chrome and Safari it all works ok, but in IE/FF not so much. In both I have the same problem: If I load the page full screen and then I minimize it with the minimize button, it takes the wrong $(window).height() . If I reload it minimized, it works ok, I can even resize such that the div adjusts ok. I put some images to be clear about what I'm talking about. With FF I have another problem. It always has a space in the bottom of the div when the

document.getElements() support

ε祈祈猫儿з 提交于 2019-12-01 19:16:31
How well supported is the document.getElements() function. Additionally, is there a javascript reference page that has detailed browser support information somewhere. I usually use the mozilla docs, but I was wondering if there is something better. I actually can't find any documentation on document.getElements() but when I do things like: document.getElements("div a"); It works great in chrome, ff, safari, ie8 and ie6-9 via IETester. I think IETester may use the same javascript engine for all browsers though (not sure about that). There is no such thing as document.getElements... I'll bet

Regex split by capturing parentheses - browser support :

夙愿已清 提交于 2019-12-01 18:18:56
问题 Looking at this sample : >'1,2,3,4,5'.split(/,/) Result : ["1", "2", "3", "4", "5"] But looking at this sample : >'1,2,3,4,5'.split(/(,)/) Result : ["1", ",", "2", ",", "3", ",", "4", ",", "5"] From MDN : If separator is a regular expression that contains capturing parentheses, then each time separator is matched, the results (including any undefined results) of the capturing parentheses are spliced into the output array. However, not all browsers support this capability. Question : Where can

document.getElements() support

情到浓时终转凉″ 提交于 2019-12-01 18:12:48
问题 How well supported is the document.getElements() function. Additionally, is there a javascript reference page that has detailed browser support information somewhere. I usually use the mozilla docs, but I was wondering if there is something better. I actually can't find any documentation on document.getElements() but when I do things like: document.getElements("div a"); It works great in chrome, ff, safari, ie8 and ie6-9 via IETester. I think IETester may use the same javascript engine for

Detect real screen resolution (ignoring browser zoom etc.)

回眸只為那壹抹淺笑 提交于 2019-12-01 17:59:11
问题 I need to get the real screen resolution using JavaScript (client-side at least), but having issues with both IE and Firefox as they tend to change this when you use the browser's built-in zoom. How can this be done in a cross-browser friendly manner? 回答1: function getDimension() { var width = 0, height = 0; if( typeof( window.innerWidth ) == 'number' ) { height = window.innerHeight; width = window.innerWidth; } else if( document.documentElement && ( document.documentElement.clientWidth ||

What browsers currently support the 'range' input?

一世执手 提交于 2019-12-01 17:45:06
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? deceze At the time of writing, apparently (Desktop) Safari, Chrome and Opera support range inputs, according to Dive Into HTML5 . 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 and expected future support for the range input here: http://caniuse.com/#feat=input-range 来源: https:/

Is using jQuery a guarantee for cross browser compatibility? [closed]

和自甴很熟 提交于 2019-12-01 17:05:23
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I noticed that writing cross-browser compatible code in JavaScript could be a little difficult in some cases. Is using jQuery a

Is using jQuery a guarantee for cross browser compatibility? [closed]

北战南征 提交于 2019-12-01 17:02:52
I noticed that writing cross-browser compatible code in JavaScript could be a little difficult in some cases. Is using jQuery a guarantee that my JavaScript code works in all browsers? As you can read on jQuery's page about browser compatibility , it supports all modern browsers including old but widely used browsers like Internet Explorer 7. If you encounter an issue with a browser using jQuery, you should submit a bug report. The beauty with frameworks such as jQuery is their compatibility. Good luck! jQuery provides good compatibility among modern browsers. There are, however, no guarantees

How do I make text-shadow and box-shadow use the text color on all browsers?

孤街浪徒 提交于 2019-12-01 16:52:23
I'm trying to create a style for a box with a shadow that's the same color as its text. Because I have several boxes, each with a different text color, I'd like to avoid having to repeat the same color in each individual ruleset for every box. Now, the Backgrounds and Borders module states, for box-shadow (which also applies to text-shadow ): Where <shadow> = inset? && [ <length>{2,4} && <color>? ] The components of each <shadow> are interpreted as follows: ... The color is the color of the shadow. If the color is absent, the used color is taken from the ‘color’ property. 1 This means that if

Flexbox item with overflowing content only works on Chrome

拟墨画扇 提交于 2019-12-01 16:49:14
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: darkkhaki; height: 200px; } <div class="container"> <div class="top-bar">Top bar</div> <div class="inner