【问题标题】:Issues Within The style.css of wordpress themewordpress 主题的 style.css 中的问题
【发布时间】:2018-04-18 21:46:32
【问题描述】:

在我的 Wordpress 网站here 上,有没有一种 CSS 方法可以消除 Google 广告后面的白框

是否可以仅删除 Google 广告后面的白框,而不删除侧边栏中的其他小部件。如果这不可能,有没有办法用 css 缩小盒子?

我假设如果我转到 style.css 文件的小部件部分,我可以在那里解决问题,但我尝试编辑这个 sn-p 代码但我找不到任何可以解决这个问题的东西。这是可能是问题所在的错误位置,这就是我在此处提供完整脚本的原因。

我希望我的问题有意义,因为这是我的第一个堆栈溢出问题

完整的 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;
}

【问题讨论】:

    标签: css wordpress adsense


    【解决方案1】:

    尝试背景色:透明;

    #custom_html-4 {
      background-color: transparent;
    }
    

    【讨论】:

      【解决方案2】:

      您可以使用 css 的临时解决方案。如果您只需要从黄色框中隐藏白色背景

      div#custom_html-4{
      background:none;
      box-shadow:none;
      }

      【讨论】:

        猜你喜欢
        • 2018-03-24
        • 2016-08-09
        • 2020-09-13
        • 2017-02-19
        • 1970-01-01
        • 2021-01-16
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多