我想创建一个<a>
标签内嵌套链接CSS - 巢式锚标记链接
例子:
<a href="#">This is a link <a id="sup">sup text</a> end of the link</a>
CSS:
a#sup{
color:#19578e;
font-family: Verdana;
font-size: 8pt;
vertical-align: top;
}
a {
font-family: Arial;
color: #19578e;
font-size: 10pt;
font-weight: normal;
font-style: normal;
text-decoration: none;
}
然而,这样只有“这是一个链接“指向链接...
不能嵌套另一个锚内的锚。 –
您不能嵌套定位标记。这是无效的HTML。使用SPAN。 –