gpt4 book ai didi

css - UIB 日期选择器按钮高度

转载 作者:行者123 更新时间:2023-11-28 04:32:24 24 4
gpt4 key购买 nike

我正在使用带有以下 html 的 uib-datepicker:

<div id="date-group" class="form-group">
<div class="input-group">
<input id="dateInput" type="text" class="form-control" uib-datepicker-popup="{{format}}" is-open="popup1.opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" alt-input-formats="altInputFormats" ng-model="searchForm.date"/>
<span class="input-group-btn">
<button type="button" class="btn btn-default" ng-click="open1()">
<i class="glyphicon glyphicon-calendar"></i>
</button>
</span>
</div>
</div>

它看起来像这样。我正在使用 Bootstrap 3.3.6。有什么建议吗?

enter image description here

最佳答案

您需要修改 button.btn-default 属性上的 CSS。向按钮添加一些填充并更改垂直对齐或边距。尽管如此,还是要更改定位。

我尝试添加填充并调整按钮的边距和垂直对齐,但默认的 Bootstrap 样式覆盖了我的尝试,我现在无法深入编码。

Here's a nice little tutorial on styling Bootstrap buttonsuse the Bootstrap documentation更改您正在使用的按钮的类别。

或者查看 Bootstrap 的 Angular 指令,the Datepicker Popup .我认为这是您最好的选择。

关于css - UIB 日期选择器按钮高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41667163/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com