of this div is green.
In IE6, both background can be identified. The parsed result is: div {Background: green; Background: red;}, so according to the priority level, the red at the end has a high priority, so of course the background color of this div is red.
CSS is compatible with IE6, IE7, and Firefox.
The first is the CSS hack method.
Height: 20px;/* For Firefox */
* Height: 25px;/* For
Background:
I have been writing PHP programs for more than a year. I still use the original print_r (); exit (); and var_dump (); exit (); for debugging, the biggest problem with it is that it cannot trace the code flow. It can also solve the problem of simply viewing the value of basic variables. If you use a large framework like Zend framework, without a deep understanding of the process,
It is difficult to write highly efficient code. As our boss often said, PHP is easy to get started and can
Recently, I started to experience Firefox and found some advantages and disadvantages. Invincible extensions do bring about functional enjoyment, the problem that comes with it is that too many plug-ins and themes lead to FF startup, which is a lot different from IE and TW, therefore, we have collected some Optimization Methods for startup speed and hope to help you ^!
Enter: About: config in the address bar.
1. Right-click and choose create-Boole
Firfox open a port other than 80, the following prompt will pop up:"This address uses a port that is typically used outside of network browsing. For security reasons, Firefox canceled the request. ”。 Search by Internet, the solution is as follows:Enter About:config in the Firefox address bar, and then right-click on a new string key network.security.ports.banned.override, add the port number you want to acc
IE and Firefox get the keyboard value of different methods, you can understand, Firefox under the Event.which and IE under the event.keycode equivalent. About the difference between each other
Type:Current Key:Decimal:Keycode:Which:Charcode:Capital: Altkey:Ctrlkey:Shiftkey:Repeat:
Test results:Under IE:>> Support KeyCode>> does not support which and charcode, the values are undefined
Under
Firebug is a revolutionary Firefox extension that can help web developers and designers test and check front-end code and provide us with a large number of useful features, for example, the latency information control panel, DOM viewer, and page element information.Although Firebug is already a toolbox bound with a large number of development functionsThere are still several extensions to improve its availability. We will introduce the ten best
Firefox (Firefox) browser proxy How to set: 1: Search the Internet available proxy server, pachong.org in the browser. Note Its IP address and port, and the IP address shown in the following figure is 61.161.175.91.
2: Click the Tools menu, click Options menu item
3: Open the Network tab, click the Set button
4: You can see that the single button on the front of "do not use a proxy"
1, open Firefox firefox browser, select Tools-additional components;
2, will jump to "add-on Component Manager";
3, in the above search box to add the plug-in name, and search, in the results list to find their own needs, click on the right side of the installation;
4, after installation, open the browser's tool menu-expansion will show the installation of Plug-ins, click on it can b
The flash component used by Shockwave Flash can easily lose its response when it opens many multimedia windows, so if the Firefox user has something important to deal with, and the browser doesn't respond and can't force it to shut down, you could do it.
The first situation is suddenly no hint, how to click the browser also did not respond to the state
The Explorer display is running, not unresponsive, and you can do this by looking at t
Just see the problem when the browser compatibility is the reason, ie, Google can display the normal.After searching online, it was found that jquery's attr () method was inappropriate.jQuery1.6 can be modified before using attr (), starting with jquery 1.6, the attr () method returns undefined properties that have not been set, and is set with prop () for settings of this type of checked.Description of two methods given by Jquey official website:Gets a property value that matches the first elem
A period of time before the company to do a commercial website, you need such a piece of code. Later I help a friend to do a navigation website, also need such a piece of code. Today to help those who need friends, the format is: April 1, 2010 Thursday 22:12:03, if necessary, direct copy, can also add their own changes. Tested, compatible with IE6, IE8, Firefox version 3.6.2.
JavaScript code:
Place the HTML code where you want the tim
mentioned IE7.0 support for CSS and new problems. Browser more, page compatibility worse, tired or we, in order to solve IE7.0 compatibility problems, find the following article:Now I mostly use!important to hack, for IE6 and Firefox test can display normally, but IE7 to!important can correctly explain, will cause the page did not display as required!Search for a bit, find a good hack way for IE7 is to use "*+html", now with IE7 browsing, there shoul
follows
Copy Code
#1 {color: #333;}/* Moz/** HTML #1 {color: #666}/* IE6 * **+html #1 {color: #999;}/* IE7 * *
Then in Firefox font color display for #333,ie6 under the font color display for #666,ie7 under the font color display as #999.
2 centering problems in CSS layoutsThe main style definitions are as follows:
The code is as follows
Copy Code
bod
javascript|xml| Advertising
Recently updated the home page ads, ASP. NET advertising control is easy to achieve this, but the homepage is a static page, Lenovo advertising control principle decided to use JavaScript+xml To achieve this aspect of configuration, update the ads as long as the XML can be updated to facilitate the advertising rotationThe XML structure is as follows==
JScript files
var now = new Date ();
var Min = Now.getseconds ();
var i;
if (Min% 2) = = 1)/read seconds, according to
I used to write functions in IE, so I wrote some functions in Firefox. I spent a lot of time on Firefox and found some differences between Firefox and IE:
1. Firefox does not support innertext or why. Firefox supports innerhtml but does not support innertext, so I checke
gives you a clear picture of your website's situation in over 30 SEO tools.
8. Quirk search status
Searchstatus Firefox extension can display a lot of Seo-related data on Firefox, such as Google PR value, Alexa ranking, compete ranking, Moz ranking, whois information, robos.txt URL, sitemap. xml url.
9. html validator
The HTML validator plug-in is not o
In the blue see this article, feel the author summed up well, at least some even I do not really know. These things really should be summed up, unfortunately I this person is more lazy, collected in this, easy to learn!
1.firefox cannot support innertext.
Firefox supports innerHTML but does not support innertext, it supports textcontent to implement innertext, but it also retains the extra space by defa
! Important can be correctly explained, and the page will not be displayed as required! Find a needleThe good hack Method for IE7 is to use "* + html". Now you can use IE7 to browse it. It should be okay.You can write a CSS file as follows:
#1 {color: #333;}/* Moz */* Html #1 {color: #666;}/* IE6 */* + Html #1 {color: #999;}/* IE7 */The font color in Firefox is displayed as #333, the font color in IE6 is di
required attribute of the form element. What's the problem? I tried to delete this attribute and solved it.
In fact, this red border is notborder,box-shadowAh.
The final solution is to add this sectionCSS:
input:required:invalid { box-shadow: none;}3) I wiped it and wrote it clearly.
outline: 0However
QASister paper also reflects the various buttons for logon, registration, and other views, inFirefoxHow can I see a black border after I click it?
What? Do the front-end friends who write code
For details about how to parse IE, FireFox, and operabrowsers to support Alpha transparency, see the following code:
The Code is as follows:
Filter: alpha (opacity = 50);/* IE */-Moz-opacity: 0.5;/* Moz + FF */Opacity: 0.5;/* supports CSS3 browsers (FF 1.5 is also supported )*/
Internet Explorer uses the private attribute filter: alpha (opacity),
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.