码迷,mamicode.com
首页 > Web开发 > 详细

学习笔记15_ASP母版页

时间:2017-06-04 21:16:25      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:选择   foo   清除浮动   ace   样式   母版页   ret   xxx   width   

*网页母版页设计通用样式
#header:{height:100px;width:1000px}
#leftDiv:{float:left;width:200px}
#mainDiv:{margin-left:200px;height:500px}
#footerDiv:{ clear:both;//清除浮动}

*ASP母版页:在母版页中,做好头部,左边部等,在中间设置特殊标记,然后让子页面来填充。
具体步骤:
(1)新建母版页,后缀为.master的文件,其他位置像往常的一样写,在要填充的地方,写上:
<asp :ContentPlaceHolder ID = "contentPlaceHoler1" runat="server"></asp:ConentPlaceHolder.
(2)添加一个“包含母版页的Web窗体”作为子页面,然后选择上面的母版作为母体。
然后,子页面就有<asp:content ID="content2" contentPlaceHolderID="contentPlaceHolder1" runat="server"></..>

*可以通过修改子页面属性MasterPageFile=".../.../xxx.master";来修改母版页

***对于任何的标签,最差的就是<a onClick="return Confirm(".....?")" >这种办法来监听事件响应。

学习笔记15_ASP母版页

标签:选择   foo   清除浮动   ace   样式   母版页   ret   xxx   width   

原文地址:http://www.cnblogs.com/pylblog/p/6941541.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!