日期:2014-05-17  浏览次数:20407 次

asp.net 页面布局

我想做一个如图所示的页面,顶部是一张图片,左侧是功能菜单,右侧是内容页面,另外,顶部和左侧的内容放到模板页中,求大神指教,该怎么实现??
布局 模板页 功能菜单

------解决方案--------------------
<div style="width:504px;height:50px;background-color:red;border:2px solid #000000">1</div>
<div style="width:120px;height:300px;float:left;margin-top:10px;background-color:#000000;border:2px solid #000000">2</div>
<div style="width:370px;height:300px;float:left;margin-left:10px;margin-top:10px;background-color:grey;border:2px solid #000000">3</div>
------解决方案--------------------
https://www.google.com.hk/search?q=HTML+frameset&aq=f&oq=HTML+frameset&aqs=chrome.0.57j0l3.4616j0&sourceid=chrome&ie=UTF-8
------解决方案--------------------
那你就建立一个left.ascx,再建立一个top.ascx,,最后你建立一个default.master把这两个控件嵌入进去,,,,现在大功告成,,直接建立一个Index.aspx引用母版页就行了,,至于布局嘛,,直接div+css或者div+table+css或者div+css+jquery,总之很多种方法
------解决方案--------------------
<html>

<frameset rows="25%,75%">

<frame src="/example/html/frame_a.html">

<frameset cols="25%,75%">
<frame src="/example/html/frame_b.html">
<frame src="/example/html/frame_c.html">
</frameset>

</frameset>

</html>