CSS 宽度在通过 .html() 克隆 html 代码时不适用
CSS width doesn't apply when cloning html code via .html()
我有一个隐藏的 div 包含一个表单(显示:none;)。
我使用 jsPanel(jQuery 插件)在我的 window 中设置模式弹出窗口。
当模态弹出时,我使用 .html()
复制模型中隐藏 div 的代码
代码已正确复制,但 css 宽度 属性 未正确应用。 div 内的表单未使用 100% 的父容器(jspanel 的 div)。
知道为什么吗?
<table> width was conflicting with jsPanel properties.
将 table 合并为
<div style="width:100%;">
解决问题。
我有一个隐藏的 div 包含一个表单(显示:none;)。
我使用 jsPanel(jQuery 插件)在我的 window 中设置模式弹出窗口。 当模态弹出时,我使用 .html()
复制模型中隐藏 div 的代码代码已正确复制,但 css 宽度 属性 未正确应用。 div 内的表单未使用 100% 的父容器(jspanel 的 div)。
知道为什么吗?
<table> width was conflicting with jsPanel properties.
将 table 合并为
<div style="width:100%;">
解决问题。