style-position 设置为输入 html 标签的绝对值。渲染过程中出现 datepicker 问题。 datepicker渲染后,将输入对象调整为静态style-position值,问题解决。
什么原因造成的?
<input id="datepicker" style="left:40px; top:40px; height:27px; width:100px; position:absolute">
谢谢。
最佳答案
我能够通过将日期选择器放置在包装 div 中并将包装器定位为绝对来克服这个问题。我猜根据 kendo datepicker 的 CSS,你不能直接使其绝对定位......
<div style="left:40px; top:40px; height:27px; width:100px; position:absolute">
<input id="datepicker" />
</div>
关于input - style-position 设置为输入标签的绝对值。渲染过程中的 kendo-ui datepicker 对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17798716/