5
我試圖根據此示例添加ui.bootstrap.alert:https://plnkr.co/edit/?p=preview。更改ui.bootstrap.alert的高度
所以我改變了CSS的高度,這裏是新的輸出
.alert {
margin-bottom: 1px;
height: 30px;
}
如何正確更改警報的高度?謝謝!
我試圖根據此示例添加ui.bootstrap.alert:https://plnkr.co/edit/?p=preview。更改ui.bootstrap.alert的高度
所以我改變了CSS的高度,這裏是新的輸出
.alert {
margin-bottom: 1px;
height: 30px;
}
如何正確更改警報的高度?謝謝!
您需要更改line-height
和padding
這個工作
.alert {
margin-bottom: 1px;
height: 30px;
line-height:30px;
padding:0px 15px;
}
很棒!謝謝! – Hanks
變化'線height'至30爲好。 – Marwelln
plunker鏈接不好 –