I need to change the css of the home page only, I have googled and a lot of the suggestions were to add the page id as part of the css selector. But when I try it, it doesn't seem to work? I want to change the class ".contentclass" and the pages id is "599" so here's what I've tried:
.post-id-599 .contentclass {}
.page-id-599 .contentclass {}
.body-id-599 .contentclass {}
Run Code Online (Sandbox Code Playgroud)
none of them seems to be working...
Link to the webpage I'm working on: Link
尝试使用右键单击"inspect element"或等效浏览器.
当我查看您的网站时,我看到了类似的内容

<body class="page page-id-624 woocommerce-cart woocommerce-page boxed varukorg" style="">
Run Code Online (Sandbox Code Playgroud)
例如,对于这个页面: 您将使用http://witdesign.se/wp/varukorg
body.post-id-624 .contentclass {}
Run Code Online (Sandbox Code Playgroud)
大括号内的任何样式都适用于具有post-id-668的body类的页面
当然,您需要使用检查器检查浏览器中的渲染内容.
| 归档时间: |
|
| 查看次数: |
24716 次 |
| 最近记录: |