The previous style, this "no file selected" would like to take it out?The result of this code is that "no file selected" is removed.Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">Http://www.w3.org/1999/xhtml"> /> Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. Input tag file type, remove different browsers "no file selected" Word
CSS style sheets are automatically called based on different browsers and resolutions. This is implemented using jscript. The following code is used: The code is as follows:Copy code
Different browsers session_id the same possibility????
What I always knew was that session_id was absolutely the only one.
But when the session of a two-level domain name is shared, a problem is found: when the user first accesses, the session_id is saved to the Cookie,cookie validity period set to one day, and then the user exits. After 30 minutes, the session of the server is destroyed, and at this time t
Ajax compatibility problems in different browsers are troublesome. I encountered this problem in my recent project. I used a strange method to solve it. Now I will discuss it with you:
Below is the front-endCode:
Backend code (Asp.net ):
Public class cajax: ihttphandler
{
Public void processrequest (httpcontext context)
{
// First read the value passed by the front end
Httprequ
Tags: blog HTTP 2014 log time EF server TT Images
I. Chrome browser (37.0.2062.124 m)
1. In win7, the time interval for re-sending of DNS timeout is: 2 S, 2 S, 2 S, and 2 S (two DNS requests are repeatedly sent at this time), 2 S, 4 s, and after about 14 S, resend another round at the above interval.
When there are two DNS servers, for example:
2. Firefox (32.0.3.5379)
1. In win7, the time interval for re-sending of DNS timeout is: 2 S, 2 S, and 4 s.
When there are two DNS servers:
2. In the
Said last time "the big screen browsing page's good experience, originally should the user adjust the window by oneself." ”
Depending on the size of the screen, reducing the window out of the horizontal scroll bar is inevitable, but ideally, the page should be able to adapt to different client browsers and resolution. The actual operation usually has three kinds of situations: the layout is adaptive, the v
Well, recently in a variety of direct code debugging, found that the problem may be a little more, let's write down, this essay may be updated from time to time, because I believe different browser differences between a lot.Directly on the code1 HTML>2 Head>3 Head>4 5 Body>6 Script>7 varStr= "/part1/part2";8 var_list=Str.split (/[\\/]/);9 for(varI= 0; I_list.length; I++)Ten { One
Resolution | browser | style sheet on the internet a besides really found a lot, but are clones of no two, so put the code on the page on the Web page, but no effect is gas dead, because of the unfamiliar script, had to ask someone else finally solve the problem!
HTTP://WWW.W3.ORG/TR/XHTML1/DTD/XHTML1-TRANSITIONAL.DTD">
http://www.w3.org/1999/xhtml">
according to the decision browser Type screen resolution automatically call different CSS code
Let's take a look at the following code: 1 lt ;! DOCTYPEhtml gt; 2 lt; html gt; 3 lt; head gt; 4 lt; metacharset quot; UTF-8 quot;/ gt; 5 lt; title gt; test the efficiency of changing the for loop sequence and defining the positions of variables lt;/title gt; 6 lt; styletype
Let's take a look at the following code:1234
5Test the efficiency of different for loop sequences and variable positions615161718
Code 1. About prototype: prototype is a feature of javascript, not the famous prototype framework:
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
2. Regarding the variable scope, different processing methods for js from IE and firefox, there are several examples here, some of which are notes that were originally viewed elsewhere, some of which were mine by myself.
2.1
[Ctrl + A select all Not
This example illustrates the differences in css between IE6 IE7 and IE8 FireFox. Different codes can make websites compatible ~~~~Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
1. About prototype: Prototype is a feature of JavaScript, not the famous prototype framework:
[Ctrl + A select all Note: If you need to introduce external JS, You need to refresh it to execute]
2. Regarding the variable scope, different processing methods for JS from IE and Firefox, there are several examples here, some of which are notes that were originally viewed elsewhere, some of which were mine by myself.2.1[Ctrl + A select all Note
In some large web site HTML code, we often see This code is rarely applied in most front-end designs, but this is a different browser style declaration to achieve a compatible effect, the following provides an example for you to refer to:
the left button retrieved from the mousedown/mouseup event is 1, while that obtained from the click event is 0.In other browsers, the left-click value obtained from the mousedown/mouseup/click event is 0. Fully complies with standards.All browsers and dbclick events cannot be obtained.
Test results by typingIE6/7ie8ie9betafirefox3. 6chrome7safari5opera10Mousedown44Error 111Mouseup44Error 111Clickerror0Er
1.* + HTML and * HTML are unique tags of IE, which are not supported by Firefox at the moment, while * + HTML is unique to IE7. Therefore, you can easily obtainThe hack instance code for Firefox, IE6, and IE7 browsers is as follows:
2.IE6 can recognize *, but cannot recognize it! Important and IE7 can recognize * and also! Important; FF cannot recognize *, but can recognize it! Important; therefore, you can write an hack instance code for Firefox,
1. currently, the full brush policy is used, that is, the whole image is refreshed every second (in xml format). The communication volume of complex images is about 30 kb (gzip compression), and the CPU usage of desktop browsers: FF and Google Chrome is about 3%.2. mobile device test results are the same as 13. Use the excanvas plug-in IE8 on the desktop. The plug-in can be opened, but the efficiency is very low. It cannot be refreshed in seconds (the
; "+ imgstyle + ";"
+ "Filter: progid: DXImageTransform. Microsoft. alphaimageloader"
+ "(Src = \ '" + IMG. SRC + "\', sizingmethod = 'Scale'); \"> IMG. outerhtml = strnewhtml
J = J-1
}
}
}
}
Window. attachevent ("onLoad", correctpng );
However, if there is only one place to be implemented, CSS is still used for higher efficiency. Here the alphaimageloader filter of ie5.5 + is applied:Copy codeThe Code is as follows: filter:Progid: DXImageTransform. Microsoft. alphaimageloader(Src1_'temp.png ',
Check the browser, pay attention to the browser to determine the order, mainly based on useragent to make judgments.
detecting browsers
var client = function () {
var engine = {
ie:0,
gecko:0,
webkit:0,
khtml:0,
opera:0,
Ver:null
};
var browser = {
Browser
ie:0,
firefox:0,
safari:0,
konq:0,
opera:0,
chrome:0,
Ver:null
};
var ua = navigator.useragent;
Browser detection is in order
if (Window.opera) {//opera Camouflage, so priorit
As a result of more and more browsers, CSS tutorials on the compatibility of designers, webmasters are the hot topic of discussion, the following we summed up some of the use of CSS compatibility issues.
1, the DIV vertical center problem
Vertical-align:middle; adds line spacing to the same height as the entire Div line-height:200px, and then inserts text and centers vertically. The disadvantage is to control the content do not change lines
2 Margi
Adobe Flash Player support center to download the debugging tool for Windows. If there is any of these download content:
ActiveX is the Flash Player debugger of IE, and plugin is the Flash Player debugger of other browsers except IE.
For details, refer to the blog post on Blog: Installing the flex debugging tool.
If an error occurs during Flash Player installation, do not use the control panel. Download the Flash Player uninstall tool from the offic
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.