Home >Web Front-end >JS Tutorial >Making windows tabs with htc components_Basic knowledge
There are many ways to simulate making Windows-style tabs on a web page. Here I will introduce you to a relatively simple method - making it with HTC components.
The advantage of using htc is that it can be called freely, and it feels a bit like batch processing. For example, if you have many web pages that use this tab, then you only need to make one htc, and then use it in different web pages. Call them separately without having to make them again. It is very convenient to use and can save a lot of time.
The specific production method is as follows:
1. Download mpc.htc
First go to the Microsoft website to download a component called mpc.htc, which is the raw material for making windows tabs.
2. Edit the web page and call mpc.htc
1. Write the html tag as:
The following content is a quote:
2. Create style behavior:
The following content is a quote: mpc:container,mpc:page{
Behavior:url(mpc.htc);
}
That is, both mpc:container and mpc:page use behaviors to call mpc.htc
这是一个表格 |
This is a table |