Several ways for asp.net to display its webpage icons

Source: Internet
Author: User

If you use IE7 or a browser with multiple tabs, you will surely find the personal icon at the front of the tab. How can this be done?

I have never quite understood it. By chance, my colleague told me several practices and posted them to share with you.

1.
Put an ico icon directly to the root directory of your website and name it favicon. ico. Favicon. ico should be a 256-colored 16 icon.
However, for earlier versions of IE, you can
Add the following mark between the Copy codeThe Code is as follows:
<Link rel = "icon" href = "/youricon. ico" type = "image/x-icon"/>
<Link rel = "shortcut icon" href = "/youricon. ico" type = "image/x-icon"/>

2.
No code required
You put an ico icon directly to the root directory of your website and name it favicon. ico. For example, http://www.abc.com, then the path is http://www.abc.com/favorite.ico.
IE will automatically search for this stuff

Http://www.favicon.com/
Http://www.html-kit.com/favicon/ this website can turn General pictures into ICO type

To display the content in browsers earlier than IE5, add the following code between the HTML source file
<Link rel = "Shortcut Icon" href = "image address">
<Link rel = "Shortcut Icon" href = "favicon. ico"> replace IE with your own Icon in front of the address bar.
<Link rel = "Bookmark" href = "favicon. ico"> you can display your icons in favorites.

IE6 does not display icons by default. icons are only displayed when you add a favorite,

====================

In addition, the site written in VS2005 has been okay for a long time. Due to the recent emergence of IE8, the disabled button was still displayed as it was, and thought it was a IE8 bug, but it was found for a long time.

The MS button can still be disabled, so it is not necessarily a browser Bug.

After several queries, it turns out that the W3C document reference version is too low.

After Upgrade.

This is the sentence:
Copy codeThe Code is as follows:
<! DOCTYPE html PUBLIC "-// W3C // dtd html 4.01 Transitional // EN">

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.