我有这样的代码:
<div class="main_parent">
<a href="www.google.it">
<img src="/path/image.jpg" alt="image" />
</a>
</div>
,我想属性text-decoration:none;
设置为包含图像的链接。
所以,喜欢出头:
.main_parent img < a
{
text-decoration:none;
}
但当然它不工作。我怎样才能用CSS 2做到这一点?