[英]how to change the styling of the drop down calendar of the ngx-daterangepicker-material
I need to change some of the styling of the calendar like top, left and width.我需要更改日历的一些样式,如顶部、左侧和宽度。 How do I do that?
我怎么做?
This here is my date range picker.这是我的日期范围选择器。 Adding a class to it and adding style in it does not update the drop down calendar.
向其中添加类并在其中添加样式不会更新下拉日历。
<div>
<input type="text"
ngxDaterangepickerMd
[(ngModel)]="selected"
[showCustomRangeLabel]="true"
[ranges]="ranges"
[showClearButton]="true"
[showCancel]="true"
[maxDate]="maxDate"
[minDate]="minDate"
[linkedCalendars]="true"
(datesUpdated)="datesUpdated($event)"
readonly/>
</div>
As directive will place the content for the calendar. As 指令将放置日历的内容。 You can hack those classes which comes with the content.
您可以破解内容附带的那些类。 As main div of that content is having a class md-drppicker, you can use this class to update the style in styles.css file.
由于该内容的主 div 有一个类 md-drppicker,您可以使用这个类来更新 styles.css 文件中的样式。
.md-drppicker {
top:0;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.