问题:我有一个母版页指示 css、html、head、body 内容,所以我不能使用浮动 div 技术,需要通过仅 ajax/asp 路由。关于这个主题,我在网上能找到的只是人们在实现这个问题时遇到了问题,但没有实际的工作示例代码。
我尝试使用jtricks.com 上的基于 jQuery 的浮动 div 菜单,但说明是针对 html 文件而不是 asp.net 文件的,并导致页面加载错误。
<script type="text/javascript" src="specify script file URL here">
</script>
<div id="floatdiv" style="
position:absolute;
width:200px;height:50px;top:10px;right:10px;
padding:16px;background:#FFFFFF;
border:2px solid #2266AA;
z-index:100">
This is a floating javascript menu.
</div>
<script type="text/javascript">
floatingMenu.add('floatdiv',
{
// Represents distance from left or right browser window
// border depending upon property used. Only one should be
// specified.
// targetLeft: 0,
targetRight: 10,
// Represents distance from top or bottom browser window
// border depending upon property used. Only one should be
// specified.
targetTop: 10,
// targetBottom: 0,
// Uncomment one of those if you need centering on
// X- or Y- axis.
// centerX: true,
// centerY: true,
// Remove this one if you don't want snap effect
snap: true
});
</script>
请提供一些关于通过 Ajax 在 TabContainer 或 DragPanel 中使用浮动 div 的示例代码。
谢谢!:)