样式管理 [英] Styles Management

查看:51
本文介绍了样式管理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有EW3。假设我想使用DWT创建一个大约100页的网站。

I have EW3. Lets say I want to create a site of approx 100 pages using a DWT.

关于每个页面内容样式所需的样式管理的实用建议是什么?

What is practical recommendation regarding management of styles required for each page's content styles?

嵌入在每个页面的标题中?

Embedded in the heading of each page?

是否继续添加到单个外部样式表?

Continual addition to single external style sheet?

继续添加到单个外部样式表为所有新的样式赋予每个页面唯一的前导码标识符,例如主页样式为hpstyle1,关于我们页面样式为austyle1等等。

Continual addition to single external style sheet with all new styles given a unique preamble identifier for each page e.g. Home page style would be hpstyle1, and About Us page style would be austyle1 etc., etc.

为每个页面的内容分别设置外部样式表?

Seperate external stylesheet for the content of each page?

我个人偏好每页都有嵌入式样式,但我很想听听有经验的从业者提出的建议。

My personal preference is for embedded styles in each page but I am keen to hear recommendations from experienced practitioners.

 

推荐答案

大多数样式应该在外部样式表中,并且在网站中保持通用。 这样,样式只由您定义一次,由用户下载一次,并且网站看起来是一致的。

Most styles should be in an external style sheet, and remain common through the site.  That way the styles are only defined once by you, downloaded once by the user, and the site looks consistent.

如果您只在一个页面上使用了特定样式,请务必放置它在< style>中页面上的部分。

If you have a specific style only used on one page, by all means put it in a <style> section on the page.


这篇关于样式管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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