2

我想问一下如何将我的博客标题分成两列?你能帮我吗?我很难弄清楚...

顺便说一句,我只需要在左侧添加我的徽标,然后在右侧添加 google adsense。

谢谢!

4

2 回答 2

1

Login to Blogger.com Click on the "Template" section. Click on "Jump to Widget" Click on "Header1"

Under the code it jumps to, ie:

    <b:section class='header' id='header' maxwidgets='2' showaddelement='no'>
    <b:widget id='Header1' locked='true' title='Your Bog Tittle (Header)' type='Header'>
    </b:widget>
    </b:section>

Insert this code:

    <b:section class='header' id='header2' maxwidgets='2' showaddelement='yes'>
    </b:section>
    <div style='clear:both;'/>

Now search for and find: "/b:skin"

ABOVE "/b:skin" insert this code:

     #header {
     float:left;
     width:50%;
     }

     #header2 {
     float:right; 
     width:30%; 
     }

You can adjust the percentages based on what you desire.

On the layout page, after you save the template AND REFRESH, you should see an "Add a Gadget" area to the right of your logo, where you can insert your adsense widget.

If things don't look right on the Layout page, place these codes below the other ones:

    #layout #header, #layout #header2 {
    padding: 0px !important;
    margin: 0px !important;
    width: 50% !important;
    }

Remember to save your template and also remember to click REFRESH after you save your template.

于 2013-07-05T03:54:47.120 回答
1

首先,您需要配置您的博客标题最大小部件。检查它是否超过 2。如果不将其更改为(假设) 4,并在 #header 和 #header2 下添加以下 css 属性:

float:left;
width:50%;

您将能够添加水平对齐的新小工具。然后在右侧添加 google adsense,在左侧添加您的徽标。保存您的模板并查看!

于 2012-06-03T22:58:54.340 回答