问题
I'm using Ng-Zorro for template styling and am currently implementing an date picker, which I would like to have sitting flush with the dropdown menu above it.
I'd like to manually adjust the width of the date-picker within the template, but I'm seeing this link saying that the width cannot be adjusted...
Trying out html in-line styling did not do anything, so now I'm curious if anyone has been able to readjust the width of the nz-date-picker with Ng-Zorro.
回答1:
May be you need to set the <nz-date-picker>
display:block
first
then set the span class="ant-calendar-picker"
width:100%
hope this could help u.
来源:https://stackoverflow.com/questions/53291234/adjust-nz-date-picker-ng-zorro-width