0

如何在 joomla 中编辑组件的正文(内容)。要编辑的 css#content响应其他属性,例如填充/边距、边框、宽度/高度和背景,但不响应字体属性...

在 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;
}
4

1 回答 1

1

嗯..如果您认为字体属性很重要,您可以使用 !important 属性来否决样式:)

#content
{
    padding:20px 10px 0 20px;
    width:670px;
    border-right:1px groove;
    line-height:30px;
    font-family:Monotype Corsiva !important;
    font-size:16px !important;
}
于 2013-02-27T18:22:46.123 回答