【问题标题】:Adding a space in between each tweet with the Twitter Badge使用 Twitter 徽章在每条推文之间添加一个空格
【发布时间】:2010-11-19 03:18:10
【问题描述】:

希望在每条推文之间添加一个空格(换行符)。到目前为止,这是我的代码。

<div id="twitter_div">
<ul id="twitter_update_list"></ul>
</div>

#twitter_div {
    float:left;
    margin:0;
    padding:0;
    width:205px;
    height:467px;
    margin-left:11px;
    color:#e5e0bd;
    text-align:left;
    font-size:14px;
    overflow:auto;

}

#twitter_div ul {
    float:left;
    margin:0;
    padding:0;
    margin-left:16px;
}

它看起来像这样http://jacobnlsn.com/

【问题讨论】:

    标签: css twitter


    【解决方案1】:
    #twitter_div ul li {
        margin-bottom: 1em;
    }
    

    或者,如果您希望它反映您的字体大小,则为 14px,但在这种情况下,1em 相当于 14px。

    【讨论】:

      【解决方案2】:

      davethegr8 在他的回答中说的差不多,但我也选择设置明确的line-height,然后将其重复为margin-bottom,而不是使用px 大小。

      #twitter_div ul li {
          line-height: 1.2em;
          margin-bottom: 1.2em; /* same as line-height */
      }
      

      【讨论】:

        猜你喜欢
        • 2011-10-29
        • 1970-01-01
        • 2020-07-13
        • 2015-08-23
        • 1970-01-01
        • 2020-01-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多