用字符搜索html [英] search the html with character

查看:61
本文介绍了用字符搜索html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有链接将ABCD TO Z当我单击Alphabit A时,我需要获取以A开头的链接,依此类推.

i have the Links will A B C D TO Z When I click on the Alphabit A i need to get the Links starting with A and so on.

推荐答案

Don'这不只是意味着您想要某种索引并在页面内跳转到相应的列表,如下所示:
Don''t you just mean you want some kind of index and jump within the page to the corresponding list, something like this:
<html>
<body>
<p>Index</p>
<a href='#a'>Go to A</a>
<a href='#b'>Go to B</a>
<a href='#c'>Go to C</a>

<p id = 'a'>Links starting with A</p>
<a href="">adam</a>
<a href="">apple</a>
<a href="">average</a>
...
<p id = 'b'>Links starting with B</p>
...
<p id = 'c'>Links starting with C</p>
...
<p id = '...'>etc...</p>
</body>
</html>



祝你好运!



Good luck!


这篇关于用字符搜索html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆