我在显示 jquery 移动弹出窗口时遇到问题。这是我的弹出代码,它是从 servlet 返回的
<a href='#popupBasic_1' data-rel='popup'
style='text-decoration: none; background-color: red; display: block; width: 40px; height: 40px; text-align: center; position: absolute; font-size: 13px; font-weight: bold; color: white'>bill</a>
<div data-role='popup' id='popupBasic_1'>
<div style='height: 200px; width: 300px'>
<div
style='text-decoration: none; background-color: red; display: block; width: 40px; height: 40px; text-align: center; font-size: 13px; font-weight: bold; color: white'>bill</div>
<div
style='text-decoration: none; background-color: blue; display: block; width: 40px; height: 40px; text-align: center; font-size: 13px; font-weight: bold; color: white'>bob</div>
</div>
</div>
我正在尝试将它放在 html 中的这个 div 标签中
<div id="users"></div>
这是我替换 html 的 ajax 调用
$.get(url).success(function(result) {
//document.getElementById("users").innerHTML = result;
$("#users").html("<code>" + result + "</code>");
我已经尝试了上述两种情况,而是在页面上的弹出窗口中显示这两个元素。如果我采用此弹出代码并将其手动放置在 div 标记中,则它可以工作。
任何帮助表示赞赏。