使用JQuery在中加载JSP页面 页面正在按预期加载到apDiv2中。。。但问题是 “server_gen.jsp”页面元素未显示在 apDiv2中的top…我希望server_gen.jsp页面元素 从apDiv2的0px显示。。。如何显示server_gen.jsp 从apDiv2的0px开始的toi.e中的元素?请帮忙
尝试添加垂直对齐:顶部;在apDiv2样式中添加垂直对齐后,我遇到了相同的问题:top;在apDiv2Maybe中,server_gen.jsp中有一个元素,带有边距填充或其他内容。请与我们分享“server_gen.jsp”的html。通过添加top:0px;以包含server_gen.jsp中的数据/元素的div之一的风格..无论如何…感谢各位的回复使用JQuery在中加载JSP页面 页面正在按预期加载到apDiv2中。。。但问题是 “server_gen.jsp”页面元素未显示在 apDiv2中的top…我希望server_gen.jsp页面元素 从apDiv2的0px显示。。。如何显示server_gen.jsp 从apDiv2的0px开始的toi.e中的元素?请帮忙,jquery,html,css,Jquery,Html,Css,尝试添加垂直对齐:顶部;在apDiv2样式中添加垂直对齐后,我遇到了相同的问题:top;在apDiv2Maybe中,server_gen.jsp中有一个元素,带有边距填充或其他内容。请与我们分享“server_gen.jsp”的html。通过添加top:0px;以包含server_gen.jsp中的数据/元素的div之一的风格..无论如何…感谢各位的回复 These are the two divs in my page #apDiv1 { position:absolut
These are the two divs in my page
#apDiv1 {
position:absolute;
left:0px;
top:115px;
width:100%;
height:100%;
z-index:4;
}
#apDiv2 {
position:relative;
left:0px;
top:0px;
width:100%;
height:100%;
z-index:5;
}
where apDiv2 is nested in apDiv1
<div id="apDiv1">
<div id="apDiv2" style="overflow:auto"></div>
</div>
what i wanna do is to load another page 'server_gen.jsp' in apDiv2 by using
$('#apDiv2').load('server_gen.jsp');