2013-02-09 29 views
0

如何在joomla中编辑组件的正文文本(内容)。编辑#content的CSS是应对像填充/保证金,边框宽度/高度及背景等属性,但不是字体属性...在我创建的模板上通过CSS编辑组件中的joomla内容

的index.php中

<body> 
<div id="content"><jdoc:include type="component" /></div> 
</body> 

CSS

#content 
{ 
    padding:20px 10px 0 20px; 
    width:670px; 
    border-right:1px groove; 
    line-height:30px; 
    font-family:Monotype Corsiva; 
    font-size:16px; 
} 

回答

1

嗯..如果你觉得字体属性是很重要的,可以使用!重要的属性来推翻造型:)

#content 
{ 
    padding:20px 10px 0 20px; 
    width:670px; 
    border-right:1px groove; 
    line-height:30px; 
    font-family:Monotype Corsiva !important; 
    font-size:16px !important; 
}