With the development of mobile networks, more and more people use mobile phones and other mobile terminals to browse Web pages for office work. If a large Alliance advertisement is displayed when the mobile phone opens the page, the user experience will be very poor, after some research, the following method is used to realize that mobile Browsers Do Not Display PC advertisements. I wrote a blog post about built-in
Enter, press enter, and switch the input focus Method to be compatible with various browsers. Enter focus
During project creation, the customer requires that the input (Focus) can be directly switched using the enter key, and the information can be submitted directly at the last time.
The first idea is to copy a piece of code online and use it directly. However, Baidu and Google searched again and found the same code above 80%. Some codes are too old
Browser compatibility is the first problem to be solved by the browser development framework in front-end development. To solve the compatibility problem, you must first determine the browser type and version accurately, the browser version can only be known by analyzing the browser's userAgent. today, we will summarize various judgment methods and hope to help you obtain browser information through JS.
Browser code name: navigator. appCodeName browser name: navigator. appName browser version
Html5 tags are compatible with earlier browsers and html5 tags
As html5 (represented by h5 later) labels become more and more widely used, it is annoying that IE does not recognize h5 labels.
In Firefox, chrome, and other browsers, if you encounter unknown labels, you only need to give a display: block attribute to make this element a div-like element, however, it is disgusting to be on IE. If you do not
1. Several browsers in CSS support different keywords, which can be repeatedly defined for browser compatibility! Important can be recognized by FireFox and IE7* It can be recognized by IE6 and IE7._ Being recognized by IE6* + Can be recognized by IE7
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; * back
Original post: how to display a hexadecimal code stream as an image in HTML
Supported IMG labels for new browsers (ff3, IE8, and chrome), such as: Ivborw0kggoaaaansuheugaaabaaaaaqmaaaalpw0iaaaablbmveuaaad/// + L2z/daaaam0leqvr4ngp4/5/h/1 + G/58zdraz3d/mch8yw83nddenge4uG9c9zwz1_vlmda/a6p9/afggfyjoxztqaaaaaelftksuqmcc "/> format. You can specify the Encoding
This post has been published by the author, but the solution is not ideal. IE6 and IE7 are not s
Outdated browser is a tool that can save time for developers. It can detect outdated browsers, and it is recommended that users upgrade to the new version. Therefore, if you get tired of using an outdated browser to access your website, this tool can help you let users know that they are using an outdated browser, we recommend that you update them.Articles you may be interested in
10 useful results in Web development [Source Code download]
Excel
Label: style blog HTTP color Io ar use Java
Simulate and implement native BIND () functions compatible with earlier versions of IE:For more information about the basic functions of JavaScript BIND (), see section 1 about the usage of JavaScript BIND () functions.However, this function is not supported in IE8 and IE8 browsers. The following describes how to simulate and implement this function.The Code is as follows:
If (! Function. Prototype. Bind) {f
First, take a look at my notes: Click me
Compatible with jquery zclip plug-ins of all browsers for copying to clipboard
Load the jquery library and zclip plug-in
ScriptType = "text/JavaScript" src = "JS/jquery-1.8.1.min.js">Script>
ScriptSrc = "JS/jquery. zclip. Min. js">Script>
Below is a small demo, mainly copying the link in the text box to the clipboard.
Html
InputType = "text" value = "www.baidu.com" id = "Link">
SpanId = "copybtn">Cop
When downloading jar files in IE and other browsers, change the suffix to zip and other problems and solutions
The recent jar download has encountered the following problems during this process:
1. When downloading jar from IE, roaming, and TT, the suffix jar will be changed to zip;
2. When Firefox and opera click to download the JAR file, the JAR file is opened in the browser and garbled characters are displayed;
360 and windows of the world can be
At first, the toLocaleString () method was used for brevity, and the problem arose.The results of the various browsers are not the same as the wood there? So how do you make the results of each browser the same? In fact, it is very simple, is to obtain the time date, and then get the date, if necessary, you can also get the time and seconds and other required data, and then according to their own needs of the format, the use of the data obtained by th
In IE, the verification code will not be refreshed, but there is no problem with Google and other browsers. The solution is to add a random parameter after the switching address of the Verification Code. Today, we found it in IE when doing the verification code, the verification code will not be refreshed, but Google and other browsers will be fine, so I think it should be a cache problem, because the defau
In projects, Excel files are often exported. If you are not on the server side, the rich client uses Javascript scripts to process data and export files. A common method for exporting files to an Excel file is to call: activeXObject ("Excel. application "), but this method has limitations and can only be implemented in browsers in the IE series, but the compatibility is not ideal.
After testing, the recommended method can export the table content t
The browser's full-screen startup function requestFullscreen still requires the js dialect prefix of Each browser. I believe that the following code requires you to spend a lot of searching to get together:
The Code is as follows:
// Judge various browsers and find the correct methodFunction launchFullscreen (element ){If (element. requestFullscreen ){Element. requestFullscreen ();} Else if (element. inclurequestfullscreen ){Element. Required reques
IE and other multi-TAB browsers log on to a TAB and then open a new TAB to open the same Web site. how can I determine whether I have logged on to the login page and asked this question before? However, I think the answer is incomplete, after you log on to a TAB in hotmail, the new tab is displayed on the logon page. How to implement it? IE and other multi-TAB browsers log on to one TAB and then open a new
Document directory
Test example
IE6
IE8
Firefox3.6
Firefox4 beta12
Chrome8
Opera11
Summary
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 main systems used for B/S are ie browsers, which basically ignore other browsers. This decision is highly compatible, but it is very troublesome to implement background gradient. I wanted to use images for implementation, but it is difficult to take into account multiple resolutions. I finally found a javascript implementation method on the internet, compatible with IE6/7, FF, Safari, etc., which is qui
Js is compatible with pc-side browsers and has a variety of cell phone floating-Layer Control instances with pop-up tips, jspc
The example in this article describes how js is compatible with pc-side browsers and there are a variety of floating-layer controls for mobile phones that bring up tips. Share it with you for your reference. The details are as follows:
Click here to download the complete instance co
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.