This is a problem that determines whether a PHP program is executed on different browsers at the same time. I have a program (assuming a single page). when this program is running, I don't want multiple browsers to run at the same time, because SESSION and COOKIE may cause different verification results due to
How browsers work: Behind the scenes of modern Web browsers has been viewed in the last two days.ArticleThe following uses Firefox, Safari, and Google Chrome as an example to describe how modern browsers work. (IE6 is dead. This is my personal opinion. I mentioned this in the original article)
The Browser contains us
Standard Reference
The object element defines an embedded object. The original intention was to replace the IMG and Applet elements. However, due to security and other reasons and lack of browser support, this original intention has not been realized. Browser objects support object types. However, different mainstream browsers use different codes to load even the
to fix the height of the containers as in IE6, how can I set it to be supported? The method is to remove the Min-Height: 200px setting for height. Here, we can define {Height: auto to take care of IE6 that does not know Min-height! Important; Height: 200px; Min-Height: 200px ;}
12. in Firefox, we know that you can use Word-wrap: Break-word directly in IE to automatically wrap a continuous long field, FF, we use JS insert to solve "; Strcontent = strcontent. substr (intlen, strcontent. Length)
This is a problem that determines whether a PHP program is executed on different browsers at the same time. I have a program (assuming a single page). when this program is running, I don't want multiple browsers to run at the same time, because SESSION and COOKIE may cause different verification results due to
server. The servlet implementations of different application servers are different. These servlet implementations decodes and converts the content to Unicode, after processing is complete, return the result (web page) encoding to the browser.(3) the browser displays the webpage according to the specified code. Character sets are involved when encoding and decodi
. The servlet implementations of different application servers are different. These servlet implementations decodes and converts the content to Unicode, after processing is complete, return the result (web page) encoding to the browser.(3) the browser displays the webpage according to the specified code.
Character sets are involved when encoding and decoding stri
, 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
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 fo
start with a case-insensitive ' dom ' string, which is reserved for future DOM event modules.
DOM 2 has defined a UI event type module and a mouse event type module that corresponds to the uievent and MouseEvent interfaces respectively. These two interfaces provide several standard properties and methods to learn some information when an event occurs.
For more information about the Eventtarget interface, refer to DOM 2 Events 1.3. Event Listener Registration.
For more information about the E
Enterprise Q: Talk about the development of the project when different browser different points, how did you solve?Different browsers do not support DOM in the same wayGet the trigger event for that element in the Web page: Use srcelement in IE, use target in FirefoxBlock ev
CSS want to introduce themselves a font, a little afraid of different browsers do not support?
Reply content:
CSS want to introduce themselves a font, a little afraid of different browsers do not support?
Custom fonts are supported in browsers that support CSS3, so d
The default CSS attribute values of the FORM and its friends in different browsers are inconsistent.
We usually need to define CSS that removes the default HTML Tag style when defining CSS styles, because the default styles shown in different browsers are inconsistent, we need to ensure that they can display the expe
SetTimeout and SetInterval are two very magical ways of window objects that enable you to call a function or a piece of code periodically or in a delay.
(Novice may think that settimeout and setinterval are JavaScript functions, which is wrong.) Beginners can easily confuse JavaScript object functions with Dom object methods. )
First a piece of code, you can guess what the results will be in various browsers?
function f(){ var s = 'arguments.l
) {//This time you need to use the Status property, which is the HTTP status code returned by the server. Xmlhttp.status equals 200 indicates that the transfer process is complete without errorsalert (Xmlhttp.responsetext);}}}Note: So we should follow the above process to remember:Create a XMLHttpRequest object, specify the send address and send method, specify the state change processing method, send a request, the request is sent after the state changes will automatically invoke the specified
Cookie:SetCookie ('test', longString );Alert (getCookie ('test '));
The test results are as follows:
(1) No Cookie of the same name is set on the current page;
Conclusion:
In the browsers of the above versions, writing strings larger than 4 kb (of course, different browsers may have different situations, some are 409
different browsers, CSS hack, from the internet to see a lot of articles, now summed up, as far as possible, for future reference. Note that the hack written below are applicable only to XHTML1.0. If the HTML is not preceded by the , the effect will be different! In addition, the IE8 described here does not refer to the IE8 compatibility mode, because the IE8
, default color is black.Experiment six, if a div does not specify the width and height, then what shape will this div be in the browser?Results: IE7: Width is 100%, height is 0, Firefox: Width is 100%, height is 0.Experiment Seven, if a div specifies a width and does not specify a height, what shape will the div be in the browser?Results: IE7: has a certain height; Firefox: height is 0;Experiment eight, two parent-child Relationship Div Parent: #father Child: #son. The CSS code is as follows:#f
Ajax compatibility issues in different browsers are troublesome, and I have encountered this problem in recent projects. And used a strange way to solve it, and now come out to discuss the discussion:
The following is the front-end code:
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.