IE8 WebSlices

Source: Internet
Author: User

In the past two days, M $ has ~ The Google Reader is vulnerable to Internet Explorer 8 information. Unfortunately, there is too little useful information. When turning over M $'s website, I found a handsome feature: "WebSlices ".

Simply put, its function is to "cut" a part of a webpage and put it in favorites. This function is not similar to Web Clip widgets on Mac OS. Web Clip allows users to cut webpages freely, while WebSlices allows users to "cut" webpages in a specific format. If you have installed IE8, visit my website and you will be able to see the effect in this picture:

Is it boring? Of course, there is no special effect on the blog. M $ introduced an application: for example, it makes sense to cut out a product that is being auctioned. The implementation method is actually very simple. You only need to specify the class and ID of HTML. Let's take a look at the column:

<Div class = "hslice" id = "testWebSlice"> <p class = "entry-title"> legendary title </p> <div class = "entry-content"> The legendary contents that can be cut </div>

See?Entry-titleAndEntry-contentHow familiar is it? Well, that is, the things that almost forgot are turned over to M $. In fact, my Blog has been stuck with the hAtom convention, but all content that is infiltrated with hAtom is not suitable for WebSlices. A little bit of attention is that there must be no fewer IDs. -_-B is a strong character between M $ IE. Numbers can be used for ID. In the official example, numbers are used as IDs.


Test legend


You can use IE8 to test whether the legendary contents can be cut out.

In addition to setting the content to be cut, you can also set the expiration time, such:

<P> End time: <abbr class = "endtime" title = "2008-02-28T17: 00: 00"> 1 day 18 hours </abbr> </p>

But the selected class isEndtimeInsteadDtend. When the browser finds that the browser has expired, the expired tag is displayed.

You can also use the same ttl as RSS to set the maximum cache time. For example:

<P> This clip updates every <span class = "ttl"> 15 </span> minutes </p>

You can even use Feed to redirect the content to be cut, as long as you add the following to entry-content:

<A rel = "feedurl" href = "auction.microsoft.com/item.xml"> Subscribe to WebSlice </a>

</

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.