Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 当许多人共享相似的类时,如何影响特定的CSS位置_Html_Css_Wordpress - Fatal编程技术网

Html 当许多人共享相似的类时,如何影响特定的CSS位置

Html 当许多人共享相似的类时,如何影响特定的CSS位置,html,css,wordpress,Html,Css,Wordpress,我试图用赛博黑猩猩的反应主题改变特定页面上的背景。我已找到页面id,并且能够更改每个位置上的CSS: .page-id-137 #wrapper 如果我做传统的 .page-id-137 #wrapper { background:blue; } 它改变了137页的主要背景和所有文章的包装。我希望它只影响与第137页关联的包装器。任何有助于解决这个问题的人都会非常有帮助 我尝试使用>指向包装器,但没有成功 编辑:添加html标记 <body class="page page-

我试图用赛博黑猩猩的反应主题改变特定页面上的背景。我已找到页面id,并且能够更改每个位置上的CSS:

.page-id-137

#wrapper
如果我做传统的

.page-id-137 #wrapper {
   background:blue;
} 
它改变了137页的主要背景和所有文章的包装。我希望它只影响与第137页关联的包装器。任何有助于解决这个问题的人都会非常有帮助

我尝试使用>指向包装器,但没有成功

编辑:添加html标记

<body class="page page-id-137 page-template-default logged-in admin-bar no-customize-support custom-background">
<div id="container" class="hfeed">
 <div id="header"></div><!-- end of #header -->

 <div id="wrapper" class="clearfix">
   <div id="content" class="grid col-940">
     <div id="post-137" class="post-137 page type-page status-publish hentry">              
        <h1 class="entry-title post-title">TITLE</h1>
        <div class="post-entry"> CONTENT 
        </div>  
     <div class="post-edit"><a class="post-edit-link" href="http://uofueclub.com/wp-admin/post.php?post=137&amp;action=edit">Edit</a></div>
     </div><!-- end of #post-137 -->
   </div><!-- end of #content -->
 </div><!-- end of #wrapper -->
</div><!-- end of #container -->

<div id="footer" class="clearfix">
</div><!-- end #footer -->

</body>

你能发布准确的HTML标记吗?我们需要更多信息。基于HTML结构,.page-id-137 wrapper{background:blue;}应该可以适用于所有具有名为.page-id-137的主体类的页面。奇怪的是,我之前试过了,但没有成功,现在成功了。奇怪,谢谢!