Adjust <nz-date-picker> (Ng-Zorro) width

左心房为你撑大大i 提交于 2019-12-11 08:32:42

问题


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

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