css - 改变 Bootstrap 面板页脚的高度

标签 css twitter-bootstrap

我想更改 Bootstrap 面板页脚的高度以使其更短,但是环顾四周后我还没有找到一种方法来做到这一点,同时还要调整页脚中文本的位置,这样它就不会'不要戳出底部。

(仅仅调整字体大小显然是不够的)

这是我的代码和我的问题的截图:

.panel-default>.panel-footer {
    color: rgba(0, 0, 0, 0.6);
    font-size: smaller;
    max-height: 20px;
}

<div class="panel-footer">
    (0 comments)
</div>

http://i.stack.imgur.com/aAXX8.jpg

最佳答案

Quas94 你好。
您在这里需要做的就是使用一些 CSS 来更改面板页脚的高度。

这是一个 Fiddle

.panel-heading{
    height:50px;
} 
.panel-body{
    min-height:150px; 
    background-color: gray;
}     
.panel-footer{
    height:100px; 
    background-color: chartreuse;
}

enter image description here

关于css - 改变 Bootstrap 面板页脚的高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31488742/

相关文章:

html - 输入未在媒体查询中内联对齐

html - 如何让 p 标签在响应式电子邮件中从堆叠位置​​从左到右移动

forms - Bootstrap : how do I make horizontal form's "inline-help" look better when it's too long?

html - 我有一个带有两个 Logo 的导航栏 - 一个不是导航栏品牌的导航栏应该在菜单折叠时与折叠按钮保持一致

html - Bootstrap 3 列问题

ajax - 添加 Ajax 后如何初始化 Bootstrap 处理程序?

javascript - Wordpress Accesspress 视差主题 : Custom Header don't work like the Live Demo

css - 在 DIV 内部垂直和水平居中图像, float 为 :left?

CSS/Bootstrap : How can i align all list items in mobile mode when in large screen they got pull right and left?

android - 图像和 css 没有出现在 apache cordova 中