HTML。将滚动条设置在确定的位置

发布于 2024-08-18 22:22:49 字数 210 浏览 6 评论 0原文

我想将滚动条的位置设置在确定的位置。就我而言,我在 hh:00 hh:30 之前的

中存储了一天中的所有时间,因此有 48 行,我想将位置设置为当天的当前时间或大约。

有什么办法可以做到这一点吗?

更新

我说的是 div 元素。我忘记放退出键了。

I would like to set the position of the scrolling bar in a determinated position. In my case I have in a <div> all the hours of the day by hh:00 hh:30 so 48 rows and I would like to set the position in the current time of the day or aprox.

Is there any way to do that?

Update

I'm talking about a div element. I forgot to put the escape key.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倦话 2024-08-25 22:22:49

您能否在 48 行的每一行中放置一个锚点,然后提供指向该锚点的链接?

UDPATE
您可以有以下内容:

<a name="133000"/>time: 13:30:00

对于下午 1:30 的时间的行。 是一个命名锚点。
当您想要链接到页面的该部分时,您可以这样做:

<a href="thisDocument.html#133000">Go to 13:30:00</a>

指向我正在谈论的内容的更好链接:http://www.htmlcodetutorial.com/linking/_A_NAME.html

Could you just put an anchor in at each of the 48 rows and then have a link to that anchor?

UDPATE
You could have the following:

<a name="133000"/>time: 13:30:00

For your row for the time 1:30 pm. The <a name="133000"/> is a named anchor.
When you want ot have a link to that part of the page you do this:

<a href="thisDocument.html#133000">Go to 13:30:00</a>

A better link to what I'm talking about: http://www.htmlcodetutorial.com/linking/_A_NAME.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文