gpt4 book ai didi

javascript - 通过 jquery 添加元标记?

转载 作者:搜寻专家 更新时间:2023-11-01 04:44:08 25 4
gpt4 key购买 nike

我需要在页面的头部添加这个元标记,因为我需要页面强制 IE7。

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

我正在使用 DNN 5.6

我该怎么做?

最佳答案

$('head').append('<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
');

虽然我不确定它是否会产生影响,因为它会在页面加载后生成

-- 编辑--

If you want to add meta data tags for page description, use the SETTINGS of your DNN page to add Description and Keywords. Beyond that, the best way to go when modifying the HEAD is to dynamically inject your code into the HEAD via a third party module.

发现于 http://www.dotnetnuke.com/Resources/Forums/forumid/7/threadid/298385/scope/posts.aspx

如果幸运的话,这可能允许其他元标记

-- 编辑 2 --

Additional HEAD tags can be placed into Page Settings > Advanced Settings > Page Header Tags.

发现于 http://www.dotnetnuke.com/Resources/Forums/forumid/-1/postid/223250/scope/posts.aspx

关于javascript - 通过 jquery 添加元标记?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7063863/

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