创建包含其他网页布局的母版页 [英] Creating master page that carries the layout for the other web pages

查看:78
本文介绍了创建包含其他网页布局的母版页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用CSS和内联样式在HTML中设置母版页?页面布局是用于创建智能内容布局的表格吗?

How do one set a master page in HTML using CSS and Inline style? the page layout is table to create smart content layout?

推荐答案

google上提供了大量链接这类一般性问题..查看此处 [ ^ ]怎么做...
Lots of links available on google for this type of general questions .. Check here[^] how to do it...


这里有一些有用的链接...... :)



在ASP.NET 2010中创建母版页 [ ^ ]





母版页初学者教程在ASP.NET [ ^ ]
Here is some helpful links for you...:)

Creating Master Page In ASP.NET 2010[^]


Beginner's Tutorial on Master Pages in ASP.NET[^]


打开Visual Studio 。



档案 - >新 - >网站



创建一个名称的网站。



右键单击解决方案资源管理器中的解决方案并选择'添加新项目'



在列表中选择'母版页'



页面将被加载。根据需要设计母版页,并将ContentPlaceHolders粘贴到您想要的任何位置。保存它。



再次右键单击解决方案并选择添加新项目。



选择' Web Form'并给出表单名称并选中复选框'Select Master Page'并单击ok,它将要求选择Master Page。选择它。



页面将加载您之前创建的母版页。



Place在contentplaceholders中你想要的控件并开始编码。



希望它有用。
Open Visual Studio.

File -> New -> Website

Create a Website with Name.

Right click on solution in solution explorer and select 'Add New Item'

In the list select 'Master Page'

Page will be loaded. Design the Master Page as you want and paste ContentPlaceHolders wherever you want. save it.

Again Right click on solution and select 'Add New Item'.

Select 'Web Form' & give form name and select the Check Box 'Select Master Page' and click ok, and it will asked to select the Master Page. Select that.

A page will be loaded with the Master Page you have created before.

Place the controls whichever you want in contentplaceholders and start coding.

Hope it is helpful.


这篇关于创建包含其他网页布局的母版页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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