我在尝试但无法通过CSS更改文本的颜色无法更改颜色CSS
这里是我的css代码。
.donfont1
{
margin: 0.8em 0 0.5em 0;
color:#00ff00;
font-weight: 600;
font-family: 'Titillium Web', sans-serif;
font-size: 16px;
line-height: 20px;
counter-increment: section-1;
counter-reset: section-2 section-3 section-4;
position: relative;
text-align:center;
}
.leaf {
list-style-type: none;
background: url('images/feature.png') no-repeat top left;
height: 46px;
text-align:center;
}
这里是HTML代码
<li class="leaf">
<p class="donfont1">
<a href=productdetails.php?url=<?php echo $friendlyurlget;?>>
<?php echo $propertytitle; ?>
</a>
</p>
</li>
请帮我谢谢
显示你的HTML,给我们一个小提琴。 – Ranveer
现在在那里...... – Reel
您的规则很可能被'a'元素上的样式设置覆盖。 – Nit