徘徊的div [英] hovering div

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

问题描述





i正在考虑制作一个绝对定位的div,并在悬停在那里时改变其可见性,但不知道如何去做


i知道你可以用javascript做到但是任何人都可以解释一下css / html方式吗?


欢呼

philleep

hi

i would like to have a box of text and images apear in a speech bubble stylie when i hover the mouse over an image. i want this speech bubble to sit on top of existing page content.

i was thinking of making a absolute positioned div and changing its visibility when the hover is there but not sure how to do it

i know you can do it with javascript but can anyone explain a css/html way?

cheer
philleep

推荐答案

你可以做几件事。首先,只需将title属性添加到您悬停的元素即可为您提供小弹出窗口。例如,< a href ="#" title =" hello"> link< / a>。

你可以做的第二件事是创建一个div,其中包含一个在悬停时发生变化的跨度。哇,
There are a couple of things you can do. First, simply adding the title attribute to the element you hover over will give you the little popup. For example, <a href="#" title="hello">link </a>.

The second thing you can do is create a div that contains a span that changes when hovered over. iow,
展开 | 选择 | Wrap | 行号


将有一个让你了解我的进展。

欢呼

philleep

will have a go and let you know my proggress.
cheer
philleep


你可以做几件事。首先,只需将title属性添加到您悬停的元素即可为您提供小弹出窗口。例如,< a href ="#" title =" hello"> link< / a>。

你可以做的第二件事是创建一个div,其中包含一个在悬停时发生变化的跨度。哇,
There are a couple of things you can do. First, simply adding the title attribute to the element you hover over will give you the little popup. For example, <a href="#" title="hello">link </a>.

The second thing you can do is create a div that contains a span that changes when hovered over. iow,
展开 | 选择 | Wrap | 行号



你可以做几件事。首先,只需将title属性添加到您悬停的元素即可为您提供小弹出窗口。例如,< a href ="#" title =" hello"> link< / a>。

你可以做的第二件事是创建一个div,其中包含一个在悬停时发生变化的跨度。哇,
There are a couple of things you can do. First, simply adding the title attribute to the element you hover over will give you the little popup. For example, <a href="#" title="hello">link </a>.

The second thing you can do is create a div that contains a span that changes when hovered over. iow,
展开 | 选择 | Wrap | 行号


这篇关于徘徊的div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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