Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在处理大量项目。列表中的每个项目都是可点击的。但是,我想要每个列表项上的链接。有没有办法绕过嵌套锚标签?当我试图在另一个 IE 中放置锚标记时,我不喜欢那样
这是一个例子:
<li> <a> <a>link to something</a> </a> </li>
无需嵌套锚标签,只需将它们放在列表项中即可。
例如:
<li> <a></a> <ul> <li><a></a></li> </ul> </li>
如果这就是你想要做的。
好吧,与其浪费时间围绕整个事情制作列表,不如像 sc davis 所做的那样,并在您的 css 中添加此代码 > Cursor:pointer;