You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何将Blogspot中的白色容器设为透明,仅显示文字与图片?

How to Remove White Boxes from Your Blogspot Blog (No Advanced Tech Skills Required)

Hey there! Let's fix those annoying white boxes on your Blogspot blog so only your text and images show up. I noticed you tried pasting some code directly into your post content, which is why it appeared as gray text—you were on the right track with CSS, but you just put it in the wrong place. Here's a simple, step-by-step guide tailored for you:

Step 1: Access Your Blogspot Theme Customizer

  • Go to your Blogspot dashboard (the backend where you manage your blog)
  • On the left sidebar, click Theme
  • Look for the Customize button (it looks like a small paintbrush icon) and click it to open the theme editor

Step 2: Add Custom CSS to Remove White Boxes

  • In the customize menu, click the Advanced tab at the top
  • Scroll all the way down until you see the Add CSS text box
  • Paste one of the following code snippets into this box (try the first one first—if it doesn't work, use the second):

Snippet 1 (most common for standard templates):

.blog-posts .post {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

Snippet 2 (if the first doesn't work for your template):

.post-body-container {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
  • After pasting, click Apply to Blog at the top right to save your changes

Why Your Previous Attempt Didn't Work

The code you tried to paste was a partial CSS rule, but you put it directly into your blog post content. Blogspot's post editor is meant for writing text, not styling code—you need to add custom CSS in the theme's advanced settings instead, which applies the style to your entire blog.

Once you save the changes, refresh your blog and those white boxes should be gone, leaving only your text and images visible. If you still run into issues, feel free to mention what template you're using, and we can tweak the code further!

内容的提问来源于stack exchange,提问作者tchawic

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.13 07:59:40