BootStrap实战四之网站内容添加(下)

网站内容(右)代码:

<aside class="col-md-4 sidebar">
                    <div class="widget">
                        <h4 class="title">社区</h4>
                        <div class="content community">
                            <p>QQ群:123456789</p>
                            <p>
                                <a href="#">问答社区</a>
                            </p>
                            <p>
                                <a href="#">官网微博</a>
                            </p>
                        </div>
                    </div>
                    <div class="widget">
                            <h4 class="title">下载 Ghost</h4>
                            <div class="content download">
                                <a href="#" class="btn btn-default btn-block">Ghost 中文版(0.5.9)</a>
                            </div>
                    </div>
                    <div class="widget">
                            <h4 class="title">标签云</h4>
                            <div class="content tag-cloud">
                                <a href="">Ghost</a>
                                <a href="">新版本发布</a>
                                <a href="">JavaScript</a>
                                <a href="">主题</a>
                                <a href="">上传</a>
                                <a href="">静态</a>
                                <a href="">Ghost</a>
                                <a href="">Ghost</a>
                                <a href="">Ghost</a>
                            </div>
                        </div>
                </aside>

对应的 CSS 文件内容:

/*网站内容(下)*/
.sidebar .widget{
    background: #ffffff;
    padding: 21px 30px;
}

.widget{
    margin-bottom: 35px;
}

.widget .title{
    margin-top: 0;
    padding-bottom: 7px;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 21px;
    position: relative;
}

.widget .tag-cloud a{
    border: 1px solid #ebebeb;
    padding: 2px 7px;
    color: #959595;
    line-height: 1.5em;
    display: inline-block;
    margin: 0 7px 7px 0;
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值