简体   繁体   English

style.css 什么是媒体?

[英]style.css what is media?

I am trying to build a website and recently I've been trying to modify something in my style.css file which I did.我正在尝试建立一个网站,最近我一直在尝试修改我所做的 style.css 文件中的某些内容。 The problem is that the style.css file that I modified is not the style.css file that my website uses.问题是我修改的style.css文件不是我网站使用的style.css文件。 After inspecting which style.css my website was using I found out this :在检查了我的网站使用的 style.css 后,我发现了这一点:

my website uses this : style.css?ver=17.7.4?media=1646744398 which seems to be a style.css file that I did not modify, but if I remove from the URL the media part to be left with style.css?ver=17.7.4?我的网站使用了这个:style.css?ver=17.7.4?media=1646744398 这似乎是一个我没有修改的 style.css 文件,但是如果我从 URL 中删除媒体部分将留下 style.css ?ver=17.7.4? I get the style.css with the modifications I made.我通过我所做的修改得到了 style.css。

When I go to my file manager in my theme folder and search for my style.css there is only one and it is the one I modified so how do I modify the style.css?ver=17.7.4?media=1646744398 because it seems like it doesn't even exist.当我去我的主题文件夹中的文件管理器并搜索我的 style.css 时,只有一个,它是我修改的那个,所以我该如何修改 style.css?ver=17.7.4?media=1646744398 因为它似乎它甚至不存在。

After doing what was written in the answer : https://www.elegantthemes.com/blog/tips-tricks/how-to-use-versioning-to-update-your-cached-wordpress-content my issue remained but I saw one thing that changed.在完成答案中所写的内容后: https ://www.elegantthemes.com/blog/tips-tricks/how-to-use-versioning-to-update-your-cached-wordpress-content 我的问题仍然存在,但我看到了改变的一件事。

When I inspected the badges again I saw this : enter image description here当我再次检查徽章时,我看到了这个:在此处输入图像描述

And what you can't see on this picture is that the incorrect part is ver=17.7.4 and correct part is ver=6.0 so it seems like there is now a new version of my style.css file but my website still uses the wrong one而你在这张图片上看不到的是,不正确的部分是ver=17.7.4,正确的部分是ver=6.0,所以看起来我的style.css文件现在有了一个新版本,但我的网站仍然使用错了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM