将框架集添加到ASPX网页 [英] Adding a Frameset to an aspx webpage

查看:104
本文介绍了将框架集添加到ASPX网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您有任何想法如何使用ASP.NET在默认页面中添加显示默认页面的框架,请告诉我,因为我尝试了太多,并且无法使用.它说不支持元素"frameset" ...

if you have any idea how to add a frame that displays another page in a default page using ASP.NET please tell me because i tried too much and i wouldn''t work with me. it says Element ''frameset'' is not supported...

推荐答案

尝试此

try this

<div  id="ifrm" >
      <iframe name="ttframe"

              id="ttframe"

              src="Put your source here"

              scrolling="no"

              marginwidth="0"

              marginheight="0"

              frameborder="0"

              width=100%

              height=0

              style="position:relative; left:0px; top:0px;">
      </iframe>
    </div>



iframe 的问题之一是您无法按百分比设置高度.因此,您要么需要尝试在css中设置它(我不确定是否可行),要么需要使用JavaScript对其进行调整,如下所示.




One of the issues with iframe is that you can not set a height in terms of percentage. So, either you need to try it set it in css ( I am not sure if that is possible ) or you need to adjust it using JavaScript as shown.


// JScript File


(函数(){ 如果(
(function () { if (


.browser.safari ||
.browser.safari ||


这篇关于将框架集添加到ASPX网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆