Let CSS distinguish between different browsersDistinguish between different browsers, CSS hack notation:
Difference between IE6 and FF:Background:orange;*background:blue;
Difference between IE6 and IE7:Background:green!important;background:blue;
Difference between IE7 and FF:Background:orange; *background:green;How to make different browsers call different CSS stylesx because of the degree of support for th
IE: a prompt is displayed when you execute more than JScript engine statements.Firefox: a prompt is displayed when the task is executed for more than 10 seconds.Safari: a prompt is displayed when the execution lasts for more than 5 seconds.Opera: No prompt is displayed no matter how long it takes to run. It is the most resistant.Chrome: an error occurs when the execution time exceeds 8 seconds (estimated value.Note: When a dialog box similar to alert is displayed, no timing is required.
InDuring
Do you still remember the nasty Browser Wars a few years ago? Nothing returns the same result on different browsers. Whether you believe it or not, these wars are still going on, although the scale is small. But it is strange that XMLHttpRequest has become one of the victims of the war. Therefore, you may need to use different methods to obtain the XMLHTTPRequest object. I will explain it in detail below.
Use the Microsoft browser
Microsoft
I had a project several months ago and had a headache in displaying and executing JavaScript and CSS in different browsers. Today I searched the internet and summarized the information, this document is from the Internet and cannot be used to specify the source.
I. There are two methods to write CSS for different browsers
Today, I made a pop-up consultation box for a website. After that, the div layer popped up in Firefox (360 browser) is always covered by the flash layer on the page, there is no problem in IE browser. I searched the internet and found a solution. Now I will share with you how to solve the problem that the DIV layer is covered by Flash (compatible with IE and Firefox browsers.
To solve the problem that the D
issues are not resolved in a timely manner, Then add some developers who are committed to open source and some scholars to open their view that Internet Explorer is unsafe, there are many users to other browsers, Firefox and Opera is the rise of this time.The significant increase in the market share of non-Trident kernel browsers has also led many web developers
CSS compatibility between IE and FF browsers-Web Standard tutorialI. Use of important in IE6 and FF. Box1 {width: 150px! Important ;}. Box1 {width: 250px ;}! Important indicates that this setting has a priority and IE has encountered it! Important does not make an error. It only ignores its function. If width is set later, ie uses the last width as the standard. If there are no other settings later, the current value is used, that is, the previous one
drawing interface, but it is not impressive in general.
First, its "top sites" function is similar to Chrome's homepage thumbnail, but it looks cool to use 3D technology. when viewing the browsing history, the beautiful 3D style interface is also very beautiful, this is useful for those who only remember what the website looks like but forget the website name.
I like safri's page injection and JavaScript debugging functions. Of course, most of these functions are available in chrome. After all,
IE9 Browser's privacy protection features are mainly composed of tracking protection, delete browsing history, InPrivate Browsing, web Privacy policy. What is the difference between these privacy precautions? And what about the effect?
Tracking protection
Tracking protection is mainly to prevent the Web site records the user's personal information, such as personal IP address, geographical location and so on. Many sites add a wide variety of statistical code that, when users visit the site,
How to make different browsers call different CSS stylesBecause of the degree of support for the standard, the same CSS style sheet is often rendered in different Web browsers. In the case of Microsoft Internet Explorer and Mozilla Firefox, the two browsers that currently have the highest market share, the former is si
SNI. Below are the lowest versions of common browsers that support SNI:BrowserLowest versionChrome Vista + full support; XP requires Chrome 6 +; OSX 10.5.7 + and Chrome 5 + Firefox 2.0 + Internet Explorer 7 + (requires Vista +) safari 3 + (OS X 10.5.6 + required) Mobile Safari iOS 4.0 + Android Webview 3.0 +
As you can see, there are still a certain number of users in Windows XP IE6 ~ 8. Android 2.x Webvie
At the earliest, there was a browser called NCSA Mosaic, labeled ncsa_mosaic/2.0 (Windows 3.1), which supported text display while supporting images, so the web began to get interesting.Then appeared a new Web browser, "Mozilla", actually is "mosaic Terminator" meaning, this make mosaic very uncomfortable, (after all Mosaic debut early, lake old), new browser finally officially announced the name is Netscape, It is more fun to label yourself as mozilla/1.0 (Win3.1). Netscape Support Framework sh
This conclusion comes from an optimization request. At first, the loading of a page was very slow and the load event could not be triggered, therefore, we hope that we can optimize the external resources of the page by dividing static files into domain names, and trigger the load event as early as possible.
So I checked the source code of the page and sorted out the external resources. Based on the following two concepts, I drew a speculative waterfall diagram:
1. the browser can only concurrent
For instructions, select your browser from the following browsers:
Firefox
In the Firefox of the PC:
Closes all other open browser windows.
At the top of the browser, click the Tools menu and choose Clear Private data ....
Select the Cookie and Cache check boxes.
Click to clear private information immediately.
In the Mac Firefox:
Closes all other open browser windows.
Click on the Firefox menu at the top of the browser and choose preferences ...
BKJIA exclusive translation] Your browser, you decide. With the advent of the browser war. It is no longer the exclusive world of Microsoft Internet Explorer (IE) and Mozilla Firefox, and more "non-mainstream" browsers such as Opera and Safari are trying their best to make full use of them, it provides users with a quick and intuitive interface environment for using the
Resolution | browser | web | Self-adapting to the internet for so long, once more than once to see the home page of some websites eye-catching "please use Internet Explorer 4.0 version of the browser at 800x600 resolution to browse this site" and other words. However, my 17-inch color display you can't always let me use 800x600 resolution bar. Besides, although all say Netscape 6.0 no IE 5.5 good, but I als
Original: Http://www.alistapart.com/articles/beyonddoctype
Author: Aaron Gustafson . Com
Translator: Zhaozy in 3user.com. Com
Reprint please indicate the author and translator information, thank you!
Progress always comes at a price. For Web browsers, users are spending a lot of money on the editors and browsers (especially Internet Explorer), as the develop
Identify HTML5 Tags:HTML5 added a number of semantically labeled tags, such as
Copy Code code as follows:
The effect came out, do not want to also know that these several browsers are not recognized these tags, so just appear a line of text: Nav aside;In modern browsers, these two are normal block-level tags, so there are line-wrapping.I risked trying to try and give Nav and aside labels a s
(useragent) !/opera/.test (useragent),
Mozilla:/mozilla/.test (useragent) !/(Compatible|webkit)/.test (useragent)
};
In this case, experienced Javascript developers already know the secret. Yes, JQuery uses a regular-judgment browser's type and version. It's pretty good!
First it unifies the user-agent into lowercase, and then uses a regular step-by-step match to which browser. For information about regular aspects, refer to here. However, there are certain doubts about whether such judgments
audio and video formats. The list of supported audio formats in the browser is as follows:
Browser
Version
Supported formats
Internet Explorer
9.0 +
MP3, AAC
Chrome
6.0 +
Ogg Vorbis, MP3, WAV (9.0 +)
Firefox
3.6 +
Ogg Vorbis, WAV
Safari
5.0 +
MP3, AAC, and WAV
Opera
10.0 +
Ogg Vorbis, WAV
A
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.