在timepicker分钟被切断,如下图所示在所有浏览器,有没有什么办法来纠正这种?我什么都看不到明显的。类“timeColor”只设置颜色。
<div class="row">
<div class="col-4 center-datepicker"><input type="text" class="form-control" bsDatepicker [(ngModel)]="eventDetail.StartDateTime" id="startDate" name="startDate" [bsConfig]="{ dateInputFormat: 'DD MMMM YYYY'}" #startDate="ngModel" autocomplete="off"/></div>
<div class="col-2"><timepicker [(ngModel)]="eventDetail.StartDateTime" id="startTime" name="startTime" class="timeColor" #startTime="ngModel" (isValid)="isStartTimeValid($event, startTime, endTime)"></timepicker></div>
</div>
为寻找一个答案,我通过添加以下到组件的css文件得到了它
:host ::ng-deep #startTime input{
width: 80px;
}
这种增加的timepicker内的输入框的宽度与网页上没有影响其它输入