当前位置: 代码迷 >> ASP.NET >> 框架页中怎么浮动一个DIV
  详细解决方案

框架页中怎么浮动一个DIV

热度:9123   发布时间:2013-02-25 00:00:00.0
框架页中如何浮动一个DIV
有个框架页面,我想在这里面浮动一个DIV,要求漂浮在这个框架上面
<frameset onload="initialize();timer();" id="950set" frameborder="0" border="framespacing=" frameSpacing="0">
<frame src="blank.htm" scrolling="no">
</frameset>

<div id ="d1"></div>

请问我应该怎么写,
不是框架页面,我倒是会写,能有效果

------解决方案--------------------------------------------------------
框架页是不支持浮动div层的,我原先在后台框架上也用了一个浮动层,但失效了,后来看到一种解决方法,
就是新建一个html页,登陆成功后就进入到这个里面index。这个html只链接到框架页,等于是转了个弯

index:
HTML code
<html xmlns="http://www.w3.org/1999/xhtml" ><head>    <title></title>    <style type="text/css">      html,body { margin:0;padding:0; height:100%;}       </style></head><body> <iframe  src="index.aspx" style="width:100%; height:100%; border:0" scrolling="no"></iframe></body></html>
  相关解决方案