HTML / CSS。去上课吗? [英] HTML/CSS. goto a class?
本文介绍了HTML / CSS。去上课吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在HTML中,您可以将带有TOP标签的标签直接放在页面顶部。因此,我认为也许也可以单击网页中的链接并直接转到特定的类(仅html / csss)...是否可以?
in HTML you have the possibility, with the tag TOP, to go on the top on the page directly. For this reason I thought that maybe there is also the possibility to click a link in my webpage and goto directly to a specific class (only html/csss)... Is it possible or not?
推荐答案
不是特定的类,因为可以有许多具有相同类名的元素,但可以使用ID。
Not to a specific class, becuase there can be many elements with the same classname, but with an ID it's possible.
<!-- Somehwere on your page -->
<span id="boookmark1"></span>
<!-- Somewhere else on your page -->
<a href="#bookmark1">Go to bookmark1</a>
这篇关于HTML / CSS。去上课吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文