日期:2014-05-19  浏览次数:20379 次

把2页面合并在一个页面中
在一个项目中设计了2个页面,要把他们给做在一个页面中,该怎么做?

------解决方案--------------------
iframe 你把它的border 设为 0 再把 滚动条属性都去掉。一般是感觉不到是在两个页面中
------解决方案--------------------
你可以在html文件里使用frame,然后嵌入XX.aspx文件的方式使用:
<html>

<head>
<meta HTTP-EQUIV= "Content-Type " CONTENT= "text/html; charset=gb2312 ">
<LINK href= "Css/style.css " type= "text/css " rel= "stylesheet ">
<title> 欢迎 </title>
</head>

<frameset cols= "150,* " frameborder= "0 " border= "0 " framespacing= "0 ">
<frame name= "left " scrolling= "no " noresize src= "left.htm " target= "mainFrame ">
<frameset rows= "20%,*,10% ">
<frame name= "topFrame " scrolling= "no " noresize target= "mainFrame " src= "head.htm ">
<frame name= "mainFrame " src= "Web/MessageList.aspx ">
<frame name= "bottom " scrolling= "no " noresize target= "mainFrame " src= "botton.htm ">
</frameset>
<noframes>
<body>

<p> 此网页使用了框架,但您的浏览器不支持框架。 </p>

</body>
</noframes>
</frameset>

</html
------解决方案--------------------
通过这个问题,我发自内心的想和楼主说两个字:服了
------解决方案--------------------
不知道你为什么要把两个页面合为一个,如果是用于导航的话,可以去看看2.0新推出的母版页技术,如果是1.1可以用用户自定义控件来解决这个问题。