小编mue*_*hdo的帖子

在Bootstrap 3警报内垂直对齐文本和按钮

我正试图在Bootstrap 3中垂直对齐文本(向左拉)和一个按钮(向右拉)alert.不知何故这样:

+------------------------------------------------+
| Some text                           [A button] |
+------------------------------------------------+
Run Code Online (Sandbox Code Playgroud)

到目前为止我所拥有的是以下(Bootply):

<div class="alert alert-info" style="overflow:hidden">
    <p class="pull-left">Some text</p>
    <button class="btn btn-sm btn-default pull-right">A button</button>
</div>
Run Code Online (Sandbox Code Playgroud)

按钮完全对齐(这实际上是我的第一个问题,在这里解决),但现在文本不在中心.

我感谢您的帮助!

html css twitter-bootstrap

7
推荐指数
1
解决办法
1万
查看次数

我应该将外部库的TypeScript定义文件检查为git吗?

我正在使用TSD来管理我正在开发的Web应用程序的TypeScript定义文件.

除了tsd.json文件之外,我应该检查我使用的外部库(通过Bower管理)的TypeScript定义文件到git 吗?

对于Bower和NPM依赖关系存在类似的讨论,其中NPM文档说不,并且afaik Bower不再给出建议(过去说).

定义文件非常轻量级,所以我倾向于检查它们.任何意见?

git typescript

4
推荐指数
1
解决办法
872
查看次数

标签 统计

css ×1

git ×1

html ×1

twitter-bootstrap ×1

typescript ×1