在引导程序中编辑警报的宽度

时间:2015-07-21 06:45:22

标签: css html5 twitter-bootstrap

我想减少警报的大小。我试过了:

.alert{
    align-content: center;
    width: 20%;
}

但它不起作用,我也试图减少整个容器的宽度。我也试图提醒他的内容的宽度,但也没有工作:

.alert{
    display:inline-block;
}

我的提醒包含许多类似的链接:

<a href="website" id="links" target="_blank">/website1</a> 

1 个答案:

答案 0 :(得分:1)

尝试使用

.alert{
    align-content: center;
    width: 20% !important;
}