1.input in all browsers and all version numbers, the height is defined. Then define the padding or border values. It's going to open up. Height is the height of itself at padding value and border value2.select in Goole Browser and IE8 above, the defined height value contains the padding value and the border value3.select browsing in IE8 and IE8. Select is the same as input. does not contain padding and border values4. Under IE browser and under Google
Today is March 16, 2015, New Date () on IE 6 is returned to the background server in a string format of "Mon Mar 00:00:00 UTC 0800" While the word returned in Firefox, Chrome, or high-version ie The string is "MonMar 00:00:00 GMT 0800", so the two different date strings are handled differently on the server side. This issue was not found because it was previously debugged on Firefox. When you test the page on IE 6, the expected effect does not appear.
ObjectiveThe front-end made two sets of pages, a set of PCs, a set of mobile phones, I want to program the returned pages, and the controller does not need to care about the terminal, only a fixed string of render.
Method of ThinkingInterceptor intercepts to render, then modifies Viewpath
RealizeKey code
Publicclassappconst{publicstaticroutessystem_ routes=null;} Publicclasscmsconfigextendsjfinalconfig{publicvoid configconstant (constantsconstants) { Configutil.loadconfig (Loadprop
The javascript new Date () function returns different values in different browsers.
Today is July 6, March 16, 2015. on IE 6, the string format returned by new Date () to the backend server is "Mon Mar 16 00:00:00 UTC 0800 2015 ", in firefox, chrome, or later IE, the returned string is "Mon Mar 16 2015 00:00:00 GMT 0800 ", therefore, the two date strings are pro
() { selectrow2(this) };
All test browsers can trigger click eventsTherefore, in order to be compatible with different IE, we can use the following statement in a unified manner.
table2row1.onclick = function() { selectrow2(this) };
2. getAttribute ProblemsElementNode is...Set attributes first with setAttributeTable1row1. setAttribute ("level", 1 );Use getAttribute to obtain the tag attribute value.Var leve
SEO optimization, although all the same, but different types of sites, need to carry out different SEO operations to achieve different optimization purposes!in the daily work, SEO optimizer will often face the type of site, do not subdivide the words, can be divided into 3 kinds:1: A human blog2: Corporate-type officia
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
links in IE 10-. */img {border-style:none;} /** * Hide the overflow in IE. */svg:not (: root) {Overflow:hidden;} /* Forms ========================================================================== *//** * 1. The change of the font styles in all browsers (opinionated). * 2. Remove the margin in Firefox and Safari. */button,input,optgroup,select,textarea {font-family:sans-serif; /* 1 */font-size:100%; /* 1 */line-height:1.15; /* 1 */margin:0/* 2 */}
This article mainly introduces a variety of browser CSS hack compatibility, CSS hack can be broadly divided into internal hack and selectors hack and HTML header reference hack, the need for friends can refer to the next
Because different browsers follow the standards are also different, coupled with the inevitable procedural bugs, economic benefits and other fa
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
First, let's talk about the browser. Although IE is still the leader in the browser market, it accounts for about 67% of its share, but due to its lack of expertise in all aspects, users start to select other browsers as their main tools for web page browsing, such as Firefox, theworld, Maxthon, chrome, and opera, there are two main factions: IE kernel and non-ie kernel. For example, theworld, Maxthon, and greenbrower all belong to IE kernel, while Fi
From: http://www.nowamagic.net/librarys/veda/detail/1077 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 specu
Issues
We take advantage of the Dreamweaver "Check Browser" feature. First press F8 to open the Behaviors panel, click the "+" button on the panel, select "Check Browser" in the pop-up menu, and pop-up the dialog box. Select Go to URL in the dropdown box after Netscape Navigator and select Go to Alt URL in the Drop-down box after Internet Explorer. Then select Change-nc.html and change-ie.html by clicking the browser button after the URL and the alt URL, respectively. That is, when the Web pag
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
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
Standard Reference
According to the W3C html4.01 specification, the "name" attribute value must start with a letter ([A-Za-Z]), followed by any letter or number ([0-9])., hyphens ("-"), underscores ("_"), colons (":"), and periods ("..
For more details, refer to the HTML 4.01 standard 6.2 SGML basic types-ID and name tokens.
Multiple Single-choice buttons share the same control name (name). If the name value is valid, the single-choice buttons with th
。 (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?
Copy Code code as follows:
function f () {
var s = ' arguments.length: ' +arguments.length+ '; ';
for (var i=0,n=arguments.length;is + + ' [' +i+ ']: ' +arguments[i]+ '; ';
, 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
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.