位置< DIV>基于Click Link / Cell [英] Position <DIV> Based on Click Link/Cell
问题描述
我不确定如何做到这一点,但我需要创建与点击的给定周相对应的< DIV>'。因此,当我的ASP生成页面时,它将创建隐藏的div。单击一周的数字时,我希望DIV显示在它旁边的那一周,就像我在下面的示例中所示:
http://www.bowlingballsandmore.com/bsa/EditScores.gif
任何人都可以指出我正确的方向或给我一个例子吗?
I am not really sure how to do this, but I need to create <DIV>''s that correspond to a given week that is clicked. So, when my ASP is generating the page, it will create the hidden divs. When a week number is clicked, I want the DIV to show up for that week next to it, like I have in the following example:
http://www.bowlingballsandmore.com/bsa/EditScores.gif
Can anyone point me in the right direction or give me an example?
推荐答案
如果这是一个asp问题,你应该在asp板上询问。但您可以使用css和隐藏/取消隐藏div可见性属性。
另一种可能性是在左侧制作周数:悬停然后显示内容。
If this is an asp question you should ask in the asp board. But you can hide/unhide the div using css and the visibility property.
Another possibility is making the week numbers on the left hand side :hover and then display the contents.
如果这是一个asp问题,你应该在asp板上询问。但您可以使用css和隐藏/取消隐藏div可见性属性。
这不是ASP问题。我将使用ASP为每周生成一个div,但这不是我的问题。
一旦创建了DIV,我该如何让他们定位/显示下一个每周都如我在样本图中所示?
此外,我了解如何隐藏/取消隐藏DIV',这也没问题。这完全是一个定位问题。
我编辑了我之前的帖子并附加了一个想法。
你想要什么要做的比我有时间更多,但并不困难。您可以将周数和数据括在一个div中,并使用:hover属性使数据可见/隐藏。 :hover在IE6中不能100%工作,因此您可能希望在< a>中包围整个div。并将鼠标悬停在所有浏览器中。
I edited my previous post with an added idea.
What you want to do is more involved than I have time for but not difficult. You can enclose the week numbers and the data in one div and use the :hover property to make the data visible/hidden. :hover does not work 100% in IE6 so you may want to surround the whole div in a <a> and hover that which will work in all browsers.
这篇关于位置< DIV>基于Click Link / Cell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!