我需要什么,如何开始使用“加密”.gz文件调整网站的CSS(What do i need and how do I start to adjust the css of a website with

编程入门 行业动态 更新时间:2024-10-26 18:17:25
我需要什么,如何开始使用“加密”.gz文件调整网站的CSS(What do i need and how do I start to adjust the css of a website with “encrypted” .gz files)

我想用他的网站帮助一个朋友。 我需要在css中更改一些样式,但我没有drupal经验。 在css文件夹中,我发现了许多.gz css文件(看起来对我来说)加密的名称。

如果我想开始编辑这些css文件。 我该如何开始? 如果我谷歌它,我可以找到一些关于gzip的信息,但我不知道最实用的解决方案是什么。

感谢您的帮助。 这是文件夹的样子:

编辑1:我发现css映射与普通的css文件:

但是更改这些文件不会改变任何东西。 当我去网站检查元素。 检查显示我在上面的图片中看到的文件名称:

我希望这个信息帮助。

I want to help a friend out with his website. I need to change some styling in the css but i do not have drupal experience. In the css folder i found a lot of .gz css files with (what looks to me) encrypted names.

If i want to start editing these css files. How do i start? If i google it, i can find some information about gzip, but i don't know what the most practical solution would be.

Thank you for your help. This is how the folder looks like:

EDIT 1: I found the css map with normal css files:

But changing these files, doesn't change anything. When i go to the website and inspect the elements. The inspect shows me the name of the files you see in the picture above in my question:

I hope this information helps.

最满意答案

对于前端,使用了一些主题。 从管理菜单转到“外观”以找出使用的主题。

然后该主题应位于“sites / all / themes / theme_name”

在该文件夹中应该有主题信息文件,称为:

theme_name.info

该文件定义了将要添加到所有页面的CSS / JSS文件(用于将这些文件添加到特定页面有其他方式),因此应该有以下行:

stylesheets[all][] = css/reset.css stylesheets[all][] = css/style.css stylesheets[all][] = css/style_gd.css

那么,你可以看到包含哪些CSS文件,添加你自己的类似文件。 确保在更改此文件后清除drupal的缓存。

因此,您可以更改其中列出的一些文件...或添加您自己的文件并将其添加到主题信息文件中。

如果启用某种缓存(“管理”菜单中的“配置 - >开发 - >性能”),则可以将多个文件合并为一个,压缩和类似...

For front-end some theme is used. From admin menu go to "Appearance" to find out what theme is used.

Then that theme should be located at "sites/all/themes/theme_name"

Inside that folder there should be theme info file, called:

theme_name.info

That file is defining CSS/JSS files that are going to be added to all pages (for adding those file to specific pages there is other way), so there should be lines like:

stylesheets[all][] = css/reset.css stylesheets[all][] = css/style.css stylesheets[all][] = css/style_gd.css

So, there you can see what CSS files are included, add you own and so similar. Make sure to clear drupal's cache after changing this file.

So you can change some of the files listed there...or add your own and add it to theme info file.

If some kind of caching is turned on ("Configuration -> Development -> Performance" from admin menu) then multiple files can be merged into one, compressed and similar...

更多推荐

本文发布于:2023-07-29 05:08:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1312623.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   网站   start   CSS   gz

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!