日期:2014-05-17  浏览次数:20680 次

div 新手问题
<div id="myModal" class="modal hide fade" tabindex="-1"
role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
</div>

$("#myModal").html(result);
$('#myModal').modal('show');
这几行代码是什么意思?求解
------解决方案--------------------
$('#myModal').modal('show');  //手动打开一个 modal(模态框)
$("#myModal").html(result);     //jquery的方法,作用和innerHTML一样,给元素赋值

你发的这段是用的Bootstrap框架,和div没有什么直接关系,看不懂也难怪了。