I'm working on a large list of items. Each item in the list is clickable. However, I want a link on each list item. Is there a way to get around nesting anchor tags? When I tried to put an anchor tag in another IE didn't like that
Here's an example:
<li>
<a>
<a>link to something</a>
</a>
</li>
There's no need to nest anchor tags, just put them inside your list items.
For example:
<li>
<a></a>
<ul>
<li><a></a></li>
</ul>
</li>
If that's what you're trying to do.
好吧,不要浪费时间在整个过程上了,而是像sc davis那样完成列表,并在CSS中添加以下代码> Cursor:pointer;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.