我有一个带有两个 a 标签的 div 我想为第一个标签写 css。
这是HTML:。
<div id="Text">
<br />
<a href="http://farsnews.com/newstext.php?nn=13920430001427#sthash.BOTOvYwM.dpuf">فارس نیوز</a>
<a href="http://farsnews.com/newstext.php?nn=13920430001427#sthash.BOTOvYwM.dpuf">فارس نیوز</a>
</div>
这是我的CSS代码:
#Text a:last-child{
text-decoration: none;
color: red; /*rgb(18, 139, 235)*/
}