gpt4 book ai didi

html - Internet Explorer 8 及以下版本的显示样式

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

我正在尝试设置我的 WordPress 网站的样式,以便在 Internet Explorer 8 和以下所有版本中正确显示。

我已经创建了一个单独的 ie.css 文件,但是当我从 IE 打开时我遇到了样式只能读取的问题。

在我的文档的头部,我包含了:

<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="ie8-and-down.css" />
<![endif]-->

当从 IE 浏览时,该网站表现为不存在。

但是当我将它插入头部时,所有样式都会出现在 IE 中(专为 IE 而设计),但也会出现在 Chrome、Mozilla 等中。

<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie.css" media="screen" />

有什么建议吗?!

最佳答案

尝试

<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie.css">
<![endif]-->

<!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie.css">
<![endif]-->

关于html - Internet Explorer 8 及以下版本的显示样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20313469/

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