What should I do if ie css3.htc does not work?

藏色散人
Release: 2023-01-04 09:38:30
Original
2377 people have browsed it

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);”.

What should I do if ie css3.htc does not work?

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>
Copy after login

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!

Related labels:
ie
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template