Web page Standard Learning: standard N-Species death method

Source: Internet
Author: User
Tags return
Standard | Web page

1. The death of Div

A Web page, no matter what. can use DIV to ~ ~ Most typical for a certain forum (dare not to play his name)
What elements should be used to use what elements.
Tbody is a good thing, and table can come out on one line, but not in all browsers.

Why is div so convenient? Because the div has no shrimp. No matter what to do, as long as adding a class or ID on the use, do not consider the hierarchical relationship, anyway, div is no semantic dongdong, how to set up how to set a set of imaging table can be.

Recommended Solution : Learn more about (X) HTML

2. Death of verification

Personally think: Web page is through the browser to show people. (Hey, sometimes is to search for referrals to see drops ...)
I used to run a lot of the same. See if you can send me a small picture. But what's the use of that little picture? Put it on so people can see that I pass the check. In order to pass the checksum. And get a lot of assorted.
The idea of the consortium is good, but browsers don't listen to him. I would choose a browser because Web users don't have to know w3c~ he doesn't have that ideal browser. I have two systems + all able to install the browser can not find the ideal, even if there is, they will not necessarily use.

Suggested Solution: The consortium can run. But not to see the picture. But look at the suggestion in the green box above the picture.

3. The death of the browser

IE is a good thing. Without him, I can not go to the Merchants Bank of the net silver hehe.
When everyone is accustomed to IE, will find how this browser so strange, I use IE are normal!
Firefox Opera is really good ... However, these two browsers either for CSS or JS parsing is somewhat different.
Can not say which is absolutely right, can not be used as a. If you can only use IE normal browsing, too sorry liunx users.
I am under win,. I will choose the browser to see the Web page selectively. But what about the liunx? There's no ie!.
Don't tell me where liunx is used. I've never seen it, but the user base is different.

suggested solution : There is no positive solution to this problem. Temporary solution to install N browser test, as little as possible with hack. Or use conditional annotations to maintain backward compatibility.

4. Death of!important

A year or two ago, we used!important to distinguish between IE and Firefox Opera. IE7 out, the kind of compatible Ie5~6+firefox~opera suddenly hung in IE7.
The page should have been backwards compatible ... Make those table>table>table to be normal and. Xhtml+css instead of normal.

suggested solution :!important is used to increase priority rather than to differentiate between browsers.

5. Death of the script

are now in vogue without a refresh. However, some people speed is not necessarily to follow.
Span plus onclick or a href=javascript:xxxxx JS does not finish the click of the script can be wrong (So-and-so people close the script, and I said error.) There are also users who might have turned off the script)
You can't go anywhere like that.

suggested solution : Scripting events should not change the structure of the original Web page. I have been using href= original link onclick= return function (), or function (); return false;

6. The death of laziness

This death may die to himself, the user's ignore.
Now if I do not have special needs, only compatible with win on the ie6+ firefox1.5+ opera9+. If suddenly one day ~ Mister's computer is using IE5 words. (generally does not happen). I don't know how to die. But I have been using two layers of production, generally do not die too ugly!

suggested solution : Install N+n Browser, at the same time estimate Mister with what browser, the browser do the best.



Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.