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

如何修改Blogger评论框外观?定制圆角及文本框样式求助

Hey there! Let's sort out that comment box styling for your blog—sounds like you just need some targeted CSS adjustments to get exactly what you want. Here's a step-by-step solution tailored to your needs:

Fixing Your Blog Comment Box Styling
  • Step 1: Style the main comment container
    First, target the outer wrapper of your comment box to add rounded corners and preserve your existing background color. Replace .comment-wrapper with the actual class or ID used by your blog's comment box (you can find this by right-clicking the comment box in your browser and selecting "Inspect"):

    .comment-wrapper {
      border-radius: 12px; /* Adjust this number to make corners more/less rounded */
      background-color: #your-current-bg-color; /* Replace with your blog's existing background hex code */
      overflow: hidden; /* Critical: ensures inner elements don't break the rounded corners */
      padding: 16px; /* Optional: adds breathing room inside the container */
    }
    

    The overflow: hidden rule is key here—it forces all inner parts of the comment box to respect the container's rounded edges instead of showing sharp corners.

  • Step 2: Style the text input area
    Now target the text input/textarea to give it a white background, black border, and matching rounded corners:

    .comment-textarea {
      width: 100%; /* Makes the input fill the container */
      background-color: #ffffff;
      border: 1px solid #000000;
      border-radius: 8px; /* Match or adjust to the container's radius for consistency */
      padding: 10px; /* Adds space for typing */
      box-sizing: border-box; /* Ensures padding doesn't make the input wider than the container */
    }
    

    If your blog uses a standard text input instead of a textarea, swap .comment-textarea for input[type="text"] or the specific class assigned to that input field.

  • Quick tip
    If you're unsure about the exact class names to use, use your browser's dev tools (right-click → Inspect) to highlight the comment box and input elements—you'll see their class/id labels in the HTML panel. Just plug those into the CSS above.

This setup will give you rounded corners for the entire comment box (including inner elements), keep the outer background consistent, and apply the white-with-black-border style to your text input. Let me know if you need to tweak anything based on your blog's specific code!

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.21 04:05:09