gpt4 book ai didi

html - IE 未连接到外部 IE 特定的 CSS 文件

转载 作者:太空宇宙 更新时间:2023-11-04 00:08:26 26 4
gpt4 key购买 nike

我在页面的头部有这个

 <!--[if IE]>
<link rel="stylesheet" type"text/css" href="ie.css" />
<![endif]-->

在 css 文件中我有这个

    <style>
h1 {
font-family: 'Paytone One', sans-serif;
font-size: 40px;
color: red;
position: absolute;
top:150px;
left: 400px;
}
h2 {
font-family: 'Paytone One', sans-serif;
font-size: 30px;
position: absolute;
top:0px;
left: 0px;
color: #FC3B3B;
}
h3 {
font-family: 'Paytone One', sans-serif;
font-size: 20px;
position: absolute;
top:300px;
left: 400px;
}
.image2 {
position: absolute;
top:0px;
left: 0px;
}
.box1 {
width: 100%;
height: 5px;
background-color: #FC3B3B;
position: absolute;
top:0px;
left: 0px;
}
p {
position: absolute;
top:0px;
left: 0px;
font-size: 15px;
font-family: arial;
color: #585858;
}

</style>

IE 不接受这个,当我更改数字以定位页面内的内容时,它们不会移动。但是在 Chrome 浏览器中,定位正是我想要的位置

最佳答案

您需要删除 <style> CSS 文件中的标签。这样的文件只包含 CSS 而根本没有 HTML。

关于html - IE 未连接到外部 IE 特定的 CSS 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14011453/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com