Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What CSS3 Pie tools are recommended?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces "which CSS3 Pie tools are recommended". In daily operation, I believe many people have doubts about which CSS3 Pie tools are recommended. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the questions of "which CSS3 Pie tools are recommended"! Next, please follow the editor to study!

First of all, I was really excited to see border-radius and Gradient and box-shadow that can make IE parents of IE8 and below use css3. Yes, you read it correctly, just use css3PIE. If you want to know more about jabbing links. There is no introduction to how to use it here, it is officially documented.

This is a pit.

However, it is important to mention that the pie path in use must be relative to the path of the page you are browsing. The url path of the following code is not relative to the path of the css file. Because although url is written in css, it works on html before css is applied.

The code is as follows:

Behavior: url (path/to/pie_files/PIE.htc)

The PIE.htc file is the soul of pie, of course, you can also use the js in his zip package to achieve. (it is very complete in that bag. You can choose a corresponding file according to the method you want to use. There is no need to post it all in the project.)

This is the second pit.

The path is right, want to say, to see the emergence of miracles under IE! But! Note this, but the Element background processed by pie disappears the first time it is used, and the point is that the official start tutorial doesn't mention it at all.

If this happens, it means that you are using the right method, in fact, PIE has already worked, as to why the background is missing, the solution is as follows.

The code is as follows:

YourCssSelector {position:relative;}

/ * or * /

YourCssSelector {position:absolute;}

If it is still not solved, please add an appropriate z-index attribute to your element.

And then everything will be normal.

Don't be naive.

Please do not use pie in: after,: before, which is completely invalid.

Explanation from jason

The code is as follows:

No, unfortunately. The reason is that pseudo-elements have no DOM and therefore there's nothing that PIE can manipulate.

At this point, the study of "what CSS3 Pie tools are recommended" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report