我想编辑特定页面的链接属性,以便它们定向到我在全局工作的社交设置菜单中指定的其他地方。所以,就像现在一样,链接继承了它们的属性,并且在 cms 中没有办法为每个页面更改它。有没有办法将它添加到 css 中?我不确定如何正确格式化它。这是 hmtl:
页面id: body.page-id-85
HTML:
<div class="wrapper">
<div class="thb-social-home">
<a title="Facebook" href="https://www.facebook.com/">
<span class="thb-social-icon">2</span>
</a>
<a title="YouTube" href="http://www.youtube.com/">
<span class="thb-social-icon">5</span>
</a>
</div>
</div>
谢谢!!
最佳答案
您可以使用 body.page-id-85
作为该页面的基本选择器:
#body.page-id-85 .wrapper {
/* wrapper specific rules*/
}
#body.page-id-85 .thb-social-home {
/* thb-social-home rules */
}
关于css - 如何编辑特定页面的 html/css?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20649405/