How do you change the size of a size of an angular ui bootstrap date picker popup?

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-07 05:35:26

问题


Here's what I'm referring to: http://angular-ui.github.io/bootstrap/

I don't see anything that indicates how to control the size. I tried changing the body font but that didn't work out


回答1:


This size of the datepicker can be changed by overriding the css for the bootstrap form-control and btn classes as shown in the following example:

.my-datepicker .form-control {
    height: 10px;
    padding: 11px;
}

.my-datepicker .btn {
    padding: 1px 2px;
}

then apply the my-datepicker class to the datepicker input-group

<span class="input-group my-datepicker">
    <input type="text" class="form-control" datepicker-popup="{{format}}" ng-model="validToDate" is-open="opened1" min-date="minDate" max-date="'2015-06-22'" datepicker-options="dateOptions" date-disabled="disabled(date, mode)" ng-required="true" close-text="Close" />
     <span class="input-group-btn"><button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button></span>
</span>


来源:https://stackoverflow.com/questions/18292918/how-do-you-change-the-size-of-a-size-of-an-angular-ui-bootstrap-date-picker-popu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!