Joomla问题添加id选择器

时间:2013-11-25 20:20:17

标签: html css joomla

通过template.css我可以添加样式到具有属性类的文章的html元素,但是如果我尝试使用属性id template.css似乎在html中看不到这个id

<div id="cellsx " style="color: #ffffff; padding-right: 10px; padding-left: 10px; width:   90%;">

1 个答案:

答案 0 :(得分:1)

在这种情况下,id属性中不应有空格。

<div id="cellsx "></div>
               ^ remove this

这样做,您应该可以使用#cellsx {}

请参阅此example here,了解其中的差异。

相关问题