[英]CSS width doesn't apply when cloning html code via .html()
I have a hidden div containing a form (display: none;). 我有一个包含表格的隐藏div(显示:无;)。
I use jsPanel (jQuery plugin) to have modal popups inside my window. 我使用jsPanel(jQuery插件)在窗口中添加了模式弹出窗口。 When the modal pops up I copy the code of the hidden div inside the model by using .html()
当模式弹出时,我使用.html()复制模型中隐藏的div的代码
The code is properly copied , but the css width property doesn't apply properly. 代码已正确复制 ,但css width属性不适当地应用。 The form inside the div does not use 100% of its parent container (the div of the jspanel).
div内的表单未使用其父容器(jspanel的div)的100%。
Any idea why ? 知道为什么吗?
<table> width was conflicting with jsPanel properties.
Englobing the table into 将表合并到
<div style="width:100%;">
fix the issue. 解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.