ie css3.htc does not work because it does not support cross-domain. The solution: first place ie-css3.htc in the root directory of the website; then modify the statement to "behavior: url(http:/ /127.0.0.1/ie-css3.htc);”.
Test environment: windows7 IE8 Dell G3
Recommended: "css video tutorial"
ie What should I do if css3.htc doesn’t work?
ie css3.htc does not work because it does not support cross-domain.
Question:
ie-css3.htc is placed on the server and can be accessed normally. Why can't the effect be seen in IE8? I am puzzled.
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> <style> .cricle{width:100px;height:100px;background: red;border-radius: 50%;position: relative;behavior: url(http://kom3.eisoo.com/css/ie-css3.htc); } </style> </head> <body> <div></div> </body> </html>
Solution:
If placed in the root directory of the website and accessed as http://127.0.0.1/index.html, behavior: url( cannot be written in the CSS file http://localhost/ie-css3.htc); Instead write behavior: url(http://127.0.0.1/ie-css3.htc); But it is better to use relative paths if the css file is different from ie-css3.htc In the same folder, write behavior: url(ie-css3.htc);
The above is the detailed content of What should I do if ie css3.htc does not work?. For more information, please follow other related articles on the PHP Chinese website!