我正在使用重氮的主题Plone网站工作。无主题站点基于Sunburst主题,因此此标记由主模板插入到/html/head:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />我的设计包含
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />所以我只需要替换这个标签。我想保留Plone生成的其他meta标签。
这些规则对我不起作用:
<drop content="/html/head/meta[@http-equiv='IE=edge']" />
<after theme-children="/html/head">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
</after>我应该使用什么规则?
发布于 2012-01-19 06:53:03
您混淆了规则中引用的属性。尝试:
<drop content="/html/head/meta[@http-equiv='X-UA-Compatible']" />相反,
https://stackoverflow.com/questions/8915093
复制相似问题