Jquery 滑块框
不确定这是 JavaScript 问题还是可以用 CSS 解决。
我使用带有文本覆盖滑块的图像,但似乎在页面加载时滑块的起始位置存在一些问题。这是生动的示例,我希望滑块在加载时隐藏并在翻转时从下方显示。
http://www.warface.co.uk/clients/detail-shoppe/导演
非常感谢
Not sure if this is a javascript issue or can be solved with CSS.
Im using an image with a text overlay slider but seem to having some issues with where the slider starts on page load. This is the live example, I would like the slider to be hidden on load and appear from below on rollover.
http://www.warface.co.uk/clients/detail-shoppe/directors
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您只需将初始
top
值添加到 CSS 中,如下所示:这将为您提供所需的初始效果,并且在悬停时它将在第一次悬停时向上滑动。
You can just add the initial
top
value to your CSS, like this:This should give you the initial effect you want, and on hover it'll slide up on the first hover.
只需包含这一行来设置初始 css,以便两个
.cover
div像这样“隐藏”
Just include this line which sets the inital css so that the two
.cover
divs are "hidden"like this