css - wordpress 主题的 style.css 中的问题

标签 css wordpress adsense

是否有一种 CSS 方法可以去除我的 Wordpress 网站上 Google 广告后面的白框 here

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

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

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

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

最佳答案

试试背景颜色:透明;

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

关于css - wordpress 主题的 style.css 中的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49901264/

相关文章:

html - 编辑 main.css 时更改页脚背景颜色不起作用

html - 水平对齐单选按钮/多个搜索框同一行

javascript - css 中的不透明度会影响其他元素吗?

php - 将 Wordpress 的登录/注册页面重定向到自定义登录/注册页面

php - WordPress .htaccess RewriteRule 不工作

adsense - 我的 Adsense 被 403 禁止

jquery - 无法控制按钮样式和悬停样式

html - Wordpress CSS img Float 左侧问题

adsense - 在响应式网站上展示广告

wordpress - 在标题中的我的 Logo 旁边添加 Adsense 横幅(wordpress)