[英]Applying CSS to a class within Joomla Module
我有一个Joomla模块。 当我检查Firebug中的CSS时,模块中有很多div。 例如
<div class="moudle-class">
<div class="Image-block">
</div>
</div>
图像块的Css:
.image-block {
position: relative;
}
这只是一个小例子,尽管div中有很多div具有自己的类。
我想为特定模块而不是跨所有模块修改img-block
类的css。
例如:
.image-block {
position: relative;
float:left
}
如果我使用类后缀,则将其添加到模块类中,不适用于图像块。
我该如何实现?
在@Tijmen注释和Joomla文档之后,您可以添加Page Class后缀,然后将其用作目标:
.myBlogClass .img-block {
/*your custom css here*/
}
屁股据我所记得的模块支持类后缀中的Joomla,如果你不想使用“整个页面”类后缀。
.myNewModuleClass .img-block {
/*your custom css here*/
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.