询问一下模板文件中的三个层叠样式表分别有什么用

讨论程序使用中的问题
回复
lengyandong
帖子: 2
注册时间: 2023年 1月 30日 20:34

询问一下模板文件中的三个层叠样式表分别有什么用

帖子 lengyandong »

感觉typecho的原始模板有点单调,不美观,就想自己改进一下。但不知道模板文件中的三个层叠样式表(grid.css, normalize.css , style.css)具体分别有什么用。问一下知道的大神,谢谢了!
Lopwon
帖子: 129
注册时间: 2016年 11月 14日 11:19
来自: www.lopwon.com
联系:

Re: 询问一下模板文件中的三个层叠样式表分别有什么用

帖子 Lopwon »

grid.css:容器自适应
normalize.css:兼容不同浏览器
style.css:主题样式
lengyandong
帖子: 2
注册时间: 2023年 1月 30日 20:34

Re: 询问一下模板文件中的三个层叠样式表分别有什么用

帖子 lengyandong »

收到,谢谢!
marconi821
帖子: 2
注册时间: 2023年 3月 15日 13:47

Re: 询问一下模板文件中的三个层叠样式表分别有什么用

帖子 marconi821 »

Hello,
I have an advice for this
The use of three cascading style sheets (CSS) in a template file can provide a modular and organized way to style a website. Here is a brief overview of how this could work:

Reset CSS: This style sheet is used to reset the default styles applied by browsers to HTML elements. This allows you to start with a clean slate when styling your website, rather than having to work around any default styles that may be applied. The reset CSS typically includes rules to remove margins, padding, and borders from all elements, and sets a consistent font size and line height. Dinar Chronicles Update


Base CSS: This style sheet is used to define the basic styles for your website, such as typography, color scheme, and layout. This style sheet is usually shared across all pages of your website and provides a consistent look and feel.

Theme CSS: This style sheet is used to define the specific styles for each page or section of your website. This allows you to easily change the style of your website without having to modify the base or reset styles. The theme CSS typically includes rules for things like backgrounds, borders, and spacing.

By using these three style sheets in combination, you can create a modular and organized approach to styling your website. This can make it easier to manage your styles and make changes to the look and feel of your website. May be helpful for you .
回复