调整< nz-date-picker>(Ng-Zorro)宽度 [英] Adjust <nz-date-picker> (Ng-Zorro) width

查看:77
本文介绍了调整< nz-date-picker>(Ng-Zorro)宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ng-Zorro进行模板样式设计,并且当前正在实现一个日期选择器,我希望其与下拉菜单上方的位置齐平.

我想手动调整模板中日期选择器的宽度,但是我看到了这个

解决方案

也许您需要先设置< nz-date-picker> display:block

然后设置 span class ="ant-calendar-picker" width:100%

希望这对您有帮助.

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.

解决方案

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.

这篇关于调整&lt; nz-date-picker&gt;(Ng-Zorro)宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆