cross-browser

General Browser display statistics

梦想与她 提交于 2019-12-23 10:09:11
问题 I need to come up with some figures on browser display (resolution) statistics. Obviously there is W3 Schools, however they state that these are results from their site and is biased towards tech savvy users. Does anyone know of some stats that are more general in nature? They need to be credible. 回答1: I usually just google for "Browser Statistics" and use the top ones that appear. W3Schools is fairly accurate even though they are only gathering a small percentage of the world's traffic.

Javascript OnClick cross-browser friendly?

不想你离开。 提交于 2019-12-23 09:37:06
问题 Can I use the following across all browsers? <a href="#" onclick="doSomething()">Click here.</a> Is this "bad practice" in regards to standards? Will it work on IE, FF, Safari and Chrome? 回答1: Can I use the following across all browsers? Yes Is this "bad practice" in regards to standards? "Bad practice" and "Standards compliance" are different things. It is standards compliant, but also, for three reasons, bad practice. It is not unobtrusive. Event handlers are better applied with JS. It

Is it safe to pass setInterval or setTimeout a fractional delay?

删除回忆录丶 提交于 2019-12-23 09:23:29
问题 I know that the difference would currently be negligible due to inaccurate browser timers, but for the sake of knowledge if nothing else: is there any browser that supports setInterval and setTimeout, but requires that they be passed an integer value as a delay? Or, rephrased with examples, is this: setInterval(animate,50/3); as cross-browser compatible as this? setInterval(animate,17); 回答1: It is perfectly safe. (As RobG points out, I haven't provide a reference to the DOM/JS bridge rules

Is There a Table That Shows HTTP Method Support by Browser [duplicate]

老子叫甜甜 提交于 2019-12-23 07:55:09
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Are the PUT, DELETE, HEAD, etc methods available in most web browsers? I've seen lots of stuff that generally say "not all browser support all HTTP methods" etc., but is there a nice table that shows specifically which HTTP methods are support that's broken down by browser? I see this previous question on SO but it's not the answer I'm looking for: Fine Grained rest HTTP verbs browser support 回答1: As of now, all

How to get user-modify:read-write-plaintext-only behaviour in Firefox and IE

家住魔仙堡 提交于 2019-12-23 07:42:12
问题 Chrome/Safari support css: -webkit-user-modify:read-write-plaintext-only , which can disable user paste rich text into a contenteditable div. I do not know how to get it in firefox and IE. 回答1: I believe you can use the -moz prefix for firefox -moz-user-modify: read-write-plaintext-only; And for IE (10+) you can use the -ms prefix -ms-user-modify: read-write-plaintext-only; It would also be proper to add it without the prefix for future proofing ;) user-modify: read-write-plaintext-only; 来源:

How Do I get 'font-weight: lighter' to work in Google Chrome?

♀尐吖头ヾ 提交于 2019-12-23 07:29:41
问题 There doesn't appear to be any difference between 'font-weight: normal' and 'font-weight: bold' in Google Chrome (and probably Safari). Has anyone found a way to invoke the 'font-weight: thinner' in Chrome the way that Firefox does? 回答1: This appears to be a known issue in Chrome fixed in latest development builds: There is a temporary workaround you can also try: To enable the font-weight property on a @font-face font which doesn't have a bold font defined, you need to explicitly define font

Display DL like a table [duplicate]

房东的猫 提交于 2019-12-23 07:03:43
问题 This question already has answers here : How to style dt and dd so they are on the same line? (16 answers) Closed 4 years ago . How to style definition list items to have each definition in one line? HTML: <dl> <dt>word</dt><dd>meaning</dd> <dt>word</dt><dd>meaning</dd> <dt>word</dt><dd>meaning</dd> </dl> Visual rendering I need: *word* meaning *word* meaning *word* meaning 回答1: Try this. dt { clear:left; float:left; font-size:12px; line-height:26px; width:70px; } dd { clear:right; font-size

CSS property print-color-adjust for non-webkit browsers

浪子不回头ぞ 提交于 2019-12-23 06:59:17
问题 I'm looking for a property which will have the same effect as -webkit-print-color-adjust does in Safari, but Firefox and Explorer. Will you please suggest to me such a property, if it exists? 回答1: No such property exists at this time. Many browser vendors consider all printing specifications to be at the discretion of the user. 回答2: It appears that the CSS Working Group's Color Module 4 draft now includes color-adjust. I'm hoping that it will find its way into browsers in the future, as I

html5 new layout elements old browsers

人盡茶涼 提交于 2019-12-23 06:49:11
问题 I have my site ( http://www.rohanjain.in) based on html5 . It uses the new elements defined in html5 for page layout: header , nav , section , article , footer etc. But I just checked that with old browsers and ie (dont care about this "non" browser) dont render the page properly. Snapshot : The css markup (source of css at http://www.rohanjain.in/media/css/style.src.css) is not being followed maybe because it does not recognize the tags. Currently for old browsers visitors are redirected to

HTML5 video is playing in particular site but not in my domian ie

谁说我不能喝 提交于 2019-12-23 06:14:12
问题 I have a mp4 video which is downloaded from some external site. The video is playing well in that tutorial site. But not in my site. This issue is only in ie9 browser. source <!DOCTYPE html> <html> <body> <video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video> </body> </html> I have downloaded the mp4 file and also ogg file which is not important for the ie9. In the