On different browsers or browsers with different settings, the web page is executed differently. This article describes some useful techniques to help you make your Web Applications
ProgramBetter adapt to all environments.
The features of different Web browsers, such as language settings and JavaScript support, may result in inconsiste
Document directory
1. Only IE Opera supports binding and unbinding Event Listeners using the 'tachevent' and 'detachevent' methods.
2. Differences between browsers in obtaining event objects
3. Differences in properties and methods of event objects in various browsers
1. Use features to determine whether to bind and unbind functions to event listeners without compatibility issues
2. Use features to d
How to Set HTTPS policies for old browsers
A few days ago, a friend asked me: we all said we recommend using the Qualys SSL Labs tool to test SSL security. Why are some of the most powerful Security manufacturers having low scores? I think this problem should be resolved in two aspects:
The situation of domestic user terminals is complex. In many cases, the SSL security configuration is reduced to be compatible with more users;
Some major manufactu
, value){VaR days = 1; // This cookie will be saved for 1 dayVaR exp = new date ();Exp. settime (exp. gettime () + days x 24x60*60*1000 );Document. Cookie = Name + "=" + escape (value) + "; expires =" + exp. togmtstring ();}
Function getcookie (name) // The cookie function.{VaR arr = Document. Cookie. Match (New Regexp ("(^ |)" + name + "= ([^;] *) (; | $ )"));If (Arr! = NULL) return Unescape (ARR [2]); return NULL;}
// Set the cookie, which containsArticleTwo situations mentioned at the beg
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
We develop different CSS files for different browsers, one for IE, one for Firefox, and one for all other types of browsing. In this way, we don't need to think too much during the design. As long as I can display this CSS normally in FF, I don't care how it works in IE, similarly, the normal CSS in IE does not care how messy it will be in ff.
First, weCodeAdd the
Place the following JavaScript code in the head.
Script Language="Javascript">
ArticleDirectory
Code explanation:
Code explanation:
Code explanation:
Code explanation:
Browser differences in Dom Parsing
All modern browsers support W3C Dom specifications, but there are differences between browsers. There are two important differences:
XML loading method;
Handling of white spaces and line breaks;
1. xml loading method:
All modern
In the past year, all major browsers have released major version updates, and many improvements have been made in terms of functions and performance, bringing the Battle of browsers that have been in violation for a long time.Again. In terms of browsers, what is attracting users? Is speed, reliability, and functionality integrated with these factors? This article
These two days in a regular expression with a slightly more complex things, but different browser differences can waste me a lot of ginseng.Now I put the regular expression in the five major mainstream browsers (IE, Firefox, Chrome, Safari, Opera, the current version of the subject of the difference between the list out, to everyone, also counted to me to do a memo.Firefox and Chrome are overly optimized for regular expressions created in loops, and i
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:
1. Use the underscore (*) and underscore (_) to distinguish them, as shown below:
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 DIV layer is covered by Flash in IE browser, a
A recent project encountered such a problem:
There is a DIV block with a scroll bar for displaying data. The business requirement is to read and display the data in the database when the scroll bar is rolling. This is not a problem in itself, but in reality it is found that when the data volume is large, when the scroll bar is rolling, it will not stop sending data requests to the background, this puts huge pressure on servers and browsers when the tr
First, a brief introduction to what is the browser kernel.The most important or core part of the browser is "Rendering engine", which can be translated into "interpretation engines", but we are generally used to call it "browser kernel". Responsible for interpreting Web page syntax (such as HTML, JavaScript) and rendering (displaying) Web pages. So the so-called browser kernel is the rendering engine used by the browser, and the rendering engine determines how the browser displays the contents o
future DOM Event modules.
DOM 2 has defined a UI event type module and a mouse event type module, which correspond to the UIEvent and MouseEvent interfaces respectively. These two interfaces provide several standard attributes and methods to learn some information about an event.
For more information about the EventTarget interface, see DOM 2 Events 1.3. Event listener regiener.
For more information about the Event interface, see DOM 2 Events 1.4. Event interface.
For more information about the
Hide CSS for browsers lone nine swords
Hide CSS for Browsers
We all know that there are differences between browsers, many people in the use of Xhtml+css way to create a Web page has been a headache. It takes a lot of skill to work under the influence of these differences, and "hiding CSS" is one of the most important techniques (even the most important). The m
Common network protocols in browsers
In fact, browsers need to deal with various network protocols to complete various WEB application functions. HTTP is only one of them. This article describes common network protocols in browsers and their relationships.
We often hear the term "TCP/IP protocol". Literally, some people think that it refers to both TCP and IP pr
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 significantly less supportive of standards than
CollectHackWriting Method
The following is my collection of hack statements for various browsers:
1. Firefox
The new identification code added by the black body to adapt to the browser
@-Moz-document URL-prefix (){
. Selector {
Property: value;
}
}Firefox supports the following methods:
# Selector[ID = selector]{// ID Selector
Property: value;
} Or:
@-Moz-document URL-prefix (){
. Selector {
Property: value;
}
}
*>. Selector {
Property: value;
}
2. W
For those who study websites or related programmers, HTTP packet capture tools are often used to track webpages. However, mainstream packet capture software such as httpwatch and httpanalyzerstdv are charged, and the cracked version is often unstable. In fact, many browsers now have built-in free packet capture tools. Today we will introduce several small series of tools.Tools/Raw Materials
Several common browse
A few days ago, Google Chrome's market share once again exceeded IE and reached the top of the world for the second time. The two browsers are very popular in the global market, making it difficult to compete. But in China, their promotion seems difficult, which has also achieved the rapid development of domestic browsers such as 360.
Dual-core browsers break th
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.