如何包含多个css文件? [英] How do I include multiple css files?

查看:125
本文介绍了如何包含多个css文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个动态Web项目,我已经在项目中包含了一个默认的css文件。

  style  css  



现在我正在尝试添加tinyeditor(一个富文本编辑器),它还带有自己的css文件。

  tinyeditor  css  



当我添加此项时文件到我的项目整个项目风格正在发生变化。

所以我如何添加这个文件,以便没有冲突

解决方案

你好b $ b我认为在小编辑中css会影响到你的项目,我的意思是你在style.css中有什么css元素名称,同样的元素名称也可以在tinyeditor.css中找到,bcz你不创建tinyeditor.css,所以打开tinyeditors.css并更改css元素名称或更改样式.css元素名称。



或者确切地说你需要什么形式的tineditor只需要只需要的元素并粘贴在style.css中(合并两个css文件并使其成为一个css文件并删除现有元素,不要重复现有元素)





您是否在同一页面中调用两个css?我的意思是两个css都是尝试在同一页面中使用不同的目的,请用tinedito.css元素检查你的style.css元素。我想在你的项目所有地方调用tinedito.css元素。


CSS冲突是在多个css包含中不可避免。建议将各种css文件合并为一个,然后手动排序和清理类似的规则。

如果你不熟悉css,请先阅读: css_syntax [ ^ ]

I am working on a dynamic web project and I already have a default css file included in the project.

style.css


Now I am trying to add tinyeditor (a rich text editor) which also comes with its own css file.

tinyeditor.css


When I add this file to my project the whole project style is changing.
So How do I add this file so that there are no conflicts

解决方案

Hi I think in tinyeditors css affect in ur project,i mean what css element name u have in style.css the same element name also available in tinyeditor.css also,bcz u not create tinyeditor.css,so open tinyeditors.css and change the css element names or change the style.css element names .

Or exact what u need form tineditor just take needed element only and paste in style.css(merge both css file and make it one css file and remove existing elements,don't repeat existing element )


did u call both css in same page ?i meant both css are try to use in same page for different purpose,pls check ur style.css element with tinedito.css element.i think tinedito.css element call in ur project all place.


CSS conflict is unavoidable in multiple css inclusion. Suggest merge the various css files into one, then sort and clean up the similar rules manually.
If you are unfamiliar with css, read this first: css_syntax[^]


这篇关于如何包含多个css文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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