似乎不能让这个css工作……你知道为什么吗?

时间:2012-02-29 作者:Rick Smith

我可能在这里遗漏了一些非常简单的东西,但我正在尝试将我的论文评论的背景设置为白色(如博客内容区域),但出于某种原因,网站的背景仍然覆盖了我的样式。我不知道为什么。这是我的风格。css。。。有人知道发生了什么吗?(这里有一篇文章,你可以看到背景是白色的,虽然我的css应该是白色的,除非我做错了什么。http://noahsdad.com/fox-4-interview-noah/ )

/*  
Theme Name: Standard-Child-Theme-1
Description: Standard is a meticulously designed and coded theme for professional blogging. It adapts to mobile devices and individual posts can be styled distinctly for words, images, quotes, links, videos, or statuses. It includes a light and dark style sheet and precision, zero-config SEO techniques are built-in. Visitors will love it. Search engines will love it. And you will love it.
Author: 8BIT
Template: Standard
*/

@import url("../Standard/style.css");

.dsq-full-comment { color: #F5F5F5 !important; }

#subscribe_dock input[type="submit"] { padding: 5px 2px; font-size:11px; }

/* Social Icons For Top Right Graphic */
#text-25    {position:relative;}
#social         {background:url(http://noahsdad.com/wp-content/uploads/2012/02/down-syndrome-blogs-noahs-dad.jpg) no-repeat; height:300px; width:300px; position:relative;}
.social_icon        {height:32px; width:32px; display:inline-block;}
.social_trans       {height:32px; width:32px;}
#social_dock        {position:absolute; top:70px; left:8px;}
#social_dock a *    {border:0;}
#subscribe_dock     {position:absolute; bottom:-5px; left:8px;}
#social #facebook   {background:url(http://noahsdad.com/wp-content/uploads/2012/02/social-sprite-2.png) no-repeat;}
#social #twitter    {background:url(http://noahsdad.com/wp-content/uploads/2012/02/social-sprite-2.png) no-repeat -32px 0px;}
#social #youtube    {background:url(http://noahsdad.com/wp-content/uploads/2012/02/social-sprite-2.png) no-repeat -64px 0px;}
#social #rss        {background:url(http://noahsdad.com/wp-content/uploads/2012/02/social-sprite-2.png) no-repeat -96px 0px;}
#social #pintrest   {background:url(http://noahsdad.com/wp-content/uploads/2012/02/social-sprite-2.png) no-repeat -128px 0px;}
#social #googleplus {background:url(http://noahsdad.com/wp-content/uploads/2012/02/social-sprite-2.png) no-repeat -160px 0px;}

/* Needed In Order To Get Social Icons To Show Up Correctly */
div.social_icon img {background: none;}

1 个回复
最合适的回答,由SO网友:Joshua 整理而成

不是WPSE的问题,但我很无聊。

首先,没有.dsq-full-comment 类,我可以在您链接的页面上找到它。然而,如果你想让整个评论块看起来像你网站的其他部分一样漂亮和洁白,那么就把它放在你的主题中custom.css 文件:

#disqus_thread {
    clear: both!important;
    background: white;
    background: white;
    margin: 0 0 40px 0;
    position: relative;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.2),transparent 0 0 0,transparent 0 0 0,transparent 0 0 0,transparent 0 0 0;
    -moz-box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.2),transparent 0 0 0,transparent 0 0 0,transparent 0 0 0,transparent 0 0 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2),transparent 0 0 0,transparent 0 0 0,transparent 0 0 0,transparent 0 0 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 20px;
}

结束

相关推荐

如何从子主题中删除css?

我正在使用主题twentyten 作为“我的孩子”主题的父主题。我还想使用其他样式表,所以我想知道如何wp_deregister_style 对于style.css 在head html的节。我已经检查了全球$wp_styles 变量围绕shutdown hook和我看到了其他风格,但没有style.css - 如何让我的孩子主题停止使用它?我意识到主题名称和信息必须存储在这里-我不想删除它,我只是不想这样enqueued