【问题标题】:style-position is set to absolute value of the input tag. kendo-ui datepicker object during the rendering processstyle-position 设置为输入标签的绝对值。渲染过程中的 kendo-ui datepicker 对象
【发布时间】:2013-07-24 14:02:37
【问题描述】:
style-position 设置为输入 html 标记的绝对值。渲染过程中出现 datepicker 问题。 datepicker渲染后,将输入对象调整为静态样式位置值,问题解决。
是什么原因造成的?
<input id="datepicker" style="left:40px; top:40px; height:27px; width:100px; position:absolute">
示例:http://jsfiddle.net/kTLUn/
谢谢。
【问题讨论】:
标签:
input
datepicker
position
kendo-ui
absolute
【解决方案1】:
我能够通过将日期选择器放置在包装 div 中并将包装器定位为绝对来克服这个问题。我猜根据剑道日期选择器的 CSS,您不能直接使其绝对定位...
<div style="left:40px; top:40px; height:27px; width:100px; position:absolute">
<input id="datepicker" />
</div>