初学者求一段DIV+iframe简单代码
菜鸟求一段DIV+iframe简单代码。
试过用frameset,不理想,网上查了一下,听说要用DIV+iframe比较好,求一段简单代码。
理想效果:
分4块: 上 中(左右) 下
上,下固定就行。
中左为菜单,中右为主窗口,随菜单切换。
一个最简单的例子就行,谢谢。
------解决方案--------------------
你用dreamwear里面什么样样的,新建的时候选择框架什么样的都有,可以试试
------解决方案--------------------
你不会连HTML里放个Iframe都不会吧
------解决方案--------------------
最好不要用FRAMESET,用DIV+CSS控制布局(也可以用TABLE布局),在你需要的地方添加IFRAME。
ASP.NET里可以使用母版页。
------解决方案--------------------
试过用frameset,不理想,网上查了一下,听说要用DIV+iframe比较好,求一段简单代码。
理想效果:
分4块: 上 中(左右) 下
上,下固定就行。
中左为菜单,中右为主窗口,随菜单切换。
一个最简单的例子就行,谢谢。
------解决方案--------------------
你用dreamwear里面什么样样的,新建的时候选择框架什么样的都有,可以试试
------解决方案--------------------
你不会连HTML里放个Iframe都不会吧
------解决方案--------------------
最好不要用FRAMESET,用DIV+CSS控制布局(也可以用TABLE布局),在你需要的地方添加IFRAME。
ASP.NET里可以使用母版页。
------解决方案--------------------
- HTML code
<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Default.aspx.cs" Inherits="ProductServices10._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>产品服务系统</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> html,body{ margin:0px; height:100%; } </style> <script language="javascript" type="text/javascript"> function DisplayNav() { var nav = document.getElementById('divLeft'); var main = document.getElementById('divmain'); if(nav.style.display=='block'|| nav.style.display=='') { nav.style.display='none'; main.style.display = 'block'; } else { nav.style.display='block'; main.style.marginleft='395px'; } } </script> </head> <body style="margin: 0; padding: 0; background-color: #0266C6;"> <form id="from1" runat="server"> <div id="divTop" style="width: 100%; height: 60px; border: none 0px"> <img src="Images/Top/toplogo.jpg" onclick="DisplayNav();" /> </div> <div style="width:100%;height: 100%; border: none 0px"> <div id="divLeft" style="width: 195px; height:100%; overflow: hidden; float: left;"> <iframe src="left.aspx" style="height: 100%" frameborder="0" border="0" marginwidth="0" marginheight="0" ></iframe> </div> <div id="divmain" style="height: 100%; border: none 0px"> <iframe src="main.aspx" width="100%" height="100%" frameborder="0" border="0" marginwidth="0" marginheight="0" ></iframe> </div> </div> </form> </body> <html>
------解决方案--------------------
好好学学 A 标签
<a href="xxx.aspx" target="name" >