如何解决以下问题 [英] how to solve the following problem

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

问题描述

嘿伙计我在Joomla中有两个单独的模块并且相同的Css应用于两者。我想更改第一个模块的字体颜色但是当我在Css中进行更改时,两个模块中都发生了变化..是任何人有没有办法解决这个问题??

解决方案

CSS的全部意义在于你只需进行一次更改就可以通过使用那种风格。



尝试创建另一种样式(或子样式),它继承原始字体颜色以外的所有属性。模块1需要使用原始样式,模块2需要使用修改后的样式。



A 参考 [ ^ ]帮助

Hey Guys I Am Having Two Seperate Modules In Joomla And The Same Css Is Applied To Both.I Want To Change The Font Color Of First Module But When I Do Changes In Css,Changes Occurs In Both The modules..is anyone is having a way to solve this problem??

解决方案

The whole point of CSS is that you only have to make the change once to cascade that effect through everything that is using that style.

Try creating another style (or "sub-style") that inherits all of the properties of the original except Font Color. Module 1 needs to use the original style, Module 2 needs to use the amended style.

A reference[^] that might help


这篇关于如何解决以下问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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