是否有一种CSS方法可以摆脱我的Wordpress网站上的Google广告背后的白框here
是否可以摆脱Google广告背后的白框而不是侧边栏中的其他小部件。如果这是不可能的,那么盒子可以用css缩小吗?
我假设我去了style.css文件的widgets部分,我可以在那里解决问题,但我尝试编辑这段代码,但我找不到任何可以解决这个问题的东西。这是可能是找到问题的错误位置,这就是我在这里提供完整脚本的原因。
我希望我的问题有道理,因为这是我的第一个堆栈溢出问题
完整的CSS文件here
以下脚本是我尝试编辑一次的部分
/*
* 09: Widgets
*/
.widget {
margin: 0 0 20px;
padding: 15px 20px;
color: #757575;
background-color: #fff;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.06);
box-shadow: 0 1px 1px rgba(0,0,0,0.06);
word-wrap: break-word;
}
.widget-title {
color: #353535;
font-size: 1.154em;
margin: 0 0 10px 0;
line-height: 1.3;
}
.widget ul {
margin: 0;
padding: 0;
}
.widget li {
margin: 0;
padding: 0.5em 0;
list-style-type: none;
}
.widget p:last-child {
margin-bottom: 0;
}
.widget_archive li a:before,
.widget_links li a:before,
.widget_categories li a:before,
.widget_meta li a:before,
.widget_recent_entries li a:before,
.widget_recent_comments li .comment-author-link:before {
font-family: "icons-font" !important;
font-style: normal !important;
font-weight: normal !important;
font-variant: normal !important;
text-transform: none !important;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 14px;
width: 14px;
text-align: left;
display: inline-block;
vertical-align: -15%;
}
.widget_archive li a:before,
.widget_links li a:before,
.widget_categories li a:before,
.widget_meta li a:before,
.widget_recent_entries li a:before {
content: "\66";
}
.widget_recent_comments li .comment-author-link:before {
content: "\4a";
padding-right: 0.25em;
}
.widget select {
max-width: 100%;
}
.widget_media_image img {
display: block;
}

答案 0 :(得分:0)
尝试background-color:transparent;
#custom_html-4 {
background-color: transparent;
}
答案 1 :(得分:0)
您可以使用css临时解决方案。如果你只需要隐藏黄色框中的白色背景
div#custom_html-4{
background:none;
box-shadow:none;
}