我们可以像style.min.css一样喜欢jquery.min.js吗? [英] can we have something like style.min.css like jquery.min.js ?

查看:85
本文介绍了我们可以像style.min.css一样喜欢jquery.min.js吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



在我的一个项目中我使用了四个或五个不同的jquery插件,如灯箱,分页,jquery验证,滑块等等同样。现在我的问题是所有的插件都有他们的js和css文件。 js文件不会产生问题,因为只会从相对页面调用,但这些插件的样式表有时会给我带来问题。现在我的项目主题已有两个样式表+所有这些插件都有两个/三个/四个样式表,内部用于显示相对效果,如分页,灯箱效果,滑块效果等。所有这些样式表都有类的主体,header,ul li控制样式,并在某些页面上破坏我的主题。





手动我需要检查所有样式表并删除所有不需要的类。可以有人知道我们可以有类似style.min.css吗?

Hi all ,

in one of my project i have used four or five different jquery plugins like light box, pagination,jquery validation, slider,and some other as well. now my issue is all the plugins have their on js and css file. js files do not create issues as that will be called from relative pages only but the style sheet of these plugins sometime creates problem for me. now i already have two style sheet for my project theme + all these plugins have two / three / four style sheet which are internally used to show relative effects like paging, light box effect , slider effects etc. all these style sheet have class for body , header , ul li controls styles and that spoil my main theme on some pages.


manually i need to check all the style sheets and remove all unwanted class. can some one know that can we have something like style.min.css ?

推荐答案

我认为你重写CSS。

你应该为您自己的标签提供明确的类名以解决此类冲突。



为了更好地理解,请访问以下链接:



http://stackoverflow.com/ question / 8224948 /在同一类或多个css文件中发生冲突 [ ^ ]

http://stackoverflow.com/questions/2788466/systematically-resolve-conflicting-styles-in-css [ ^ ]
I think you are overriding CSS.
You should give explicit class name for your own tags to resolve such conflicts.

For better understanding visit following links:

http://stackoverflow.com/questions/8224948/conflict-between-the-same-class-or-id-of-multiple-css-files[^]
http://stackoverflow.com/questions/2788466/systematically-resolve-conflicting-styles-in-css[^]


有免费的CSS minifier工具,如下一个: http://www.csscompressor.com/ [ ^ ]
There are free CSS minifier tools like the next one: http://www.csscompressor.com/[^]


这篇关于我们可以像style.min.css一样喜欢jquery.min.js吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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