用于获取现有设计模板并将其放入母版页的资源?

发布于 2024-07-14 09:55:58 字数 197 浏览 7 评论 0原文

我不是设计师,所以我从 http://www.opendesigns.org/ 获取了一个设计模板并成功地在一个页面中实现了设计,但是当我尝试将其放入母版页时,它看起来很有趣,所以我很好奇是否有任何关于采用设计模板并将其放入母版页的资源/教程。

I am not a designer, so I took a design template from http://www.opendesigns.org/ and was successful in implementing the design in one page, but when I tried to put it into a masterpage, it came out funny looking, so I was curious if there were any resources/tutorials on taking design templates and putting them in masterpages.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

混浊又暗下来 2024-07-21 09:55:58

母版页只是带有内容占位符的 HTML/ASP。

只要一切都正确,它就应该正常显示。

当我构建母版页时,我会构建我的设计,然后复制并粘贴到母版页中,并在需要的位置插入占位符。

A master page is just HTML / ASP with a placeholder for the content.

As long as everything is well-formed, it should display as normal.

When I am building a master page, I build my design, then copy and paste into the master page and insert the placeholder where I need it.

信愁 2024-07-21 09:55:58

你说的有些内容很混乱,我认为你需要更清楚一些。 母版页是网站或子网站上布局的模板,您永远不会将母版页作为内容提供,您将始终使用母版页作为内容页的基础,母版页允许您定义一组占位符原则上,页面骨架的全局定义,用于将使用母版页的区域。 通常将站点范围(或子站点范围 - 取决于您正在执行的操作)内容放置到母版页本身上,例如菜单、横幅等。然后让使用母版页的页面定义内容占位符中包含的内容这将特定于页面实例。

当你说你把设计放在页面中时,它是纯html吗? 或者是一个 aspx ? 您不清楚如何从

1)设计模板到“页面”(请解释html或aspx)

2)如何获取页面并将其“放入”母版页(我认为如果您解释一下,可能会更容易帮助)

some of what you say is quite confusing, i think you need to be clearer. A master page is a template for layout on your site or subsite, you would never serve a master page as content, you would always use the master page as a basis for a content page, the master page allows you to define a set of placeholders and, in principle, a global definition of the skeleton of your pages, for the area within which the master page will be used. Its usual to place site wide (or sub site wide - depends what you are doing) content onto the master page itself, things like menus, banners etc. And then let the pages that use the master page define what is held in the content placeholders that will be specific to the page instances.

when you say you put the design in a page, was it pure html ? or was it an aspx ? you arent clear on how you got from

1) design template to "page" (please explain html or aspx)

2) how you took your page and "put it in" your master page (i think if you explain, it might be easier to help)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文