如何为这些引导面板添加底部边距

时间:2017-12-17 02:44:21

标签: css ruby-on-rails twitter-bootstrap

enter image description here在每次面板页脚的迭代之后,我想要一个边距,所以每个帖子都没有连接到最后一个。解决方案不一定是最佳实践,这是一个任何样式都是额外功劳的项目。

ERB:

$ go run go-sqlite3-test.go 
# pkg-config --cflags sqlite3
Package sqlite3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sqlite3' found
pkg-config: exit status 1

$ sudo pkg-config --cflags sqlite3 
Package sqlite3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sqlite3' found

$ go build 
# pkg-config --cflags sqlite3
Package sqlite3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sqlite3' found
pkg-config: exit status 1

2 个答案:

答案 0 :(得分:0)

嘿不确定你是否想这样做,但你可以用div相同的类名包装每个帖子,并给该类名称设置一个margin-bottom样式:

答案 1 :(得分:0)

如果您的示例代码生成HTML <form>元素,则可以使用

为每个元素添加边距
.panel-footer form {
    margin-bottom: 15px;
}