<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>鼠标移到图片上显示文字效果</title>
<style>
.bot .sendList {
margin-right:6px
}
.explore {
width:936px;
margin:20px auto 0;
overflow:hidden;
position:relative;
font-size:0px;
}
.explore li {
width:160px;
height:150px;
overflow:hidden;
display:inline-block;
position:relative;
}
.explore li {
*display:inline;
}
.explore li .wqPic {
width:160px;
height:150px;
overflow:hidden;
}
.explore .wqLink {
display:block;
width:160px;
height:150px;
color:#FFF;
text-align:center;
font-family:"微软雅黑"
}
.explore .wqItem .wqName {
position:absolute;
bottom:0;
left:0;
width:130px;
height:40px;
line-height:40px;
font-size:16px;
overflow:hidden;
padding:0 10px;
}
.explore .wqItem .bg {
background:#333;
opacity:0.8;
filter:alpha(opacity = 80);
position:absolute;
bottom:0;
left:0;
width:150px;
height:40px;
}
.explore .wqLink:hover {
cursor:pointer;
text-decoration:none;
}
.explore .wqLink:hover .wqItem .bg {
height:150px;
}
.explore .wqLink:hover .wqItem .wqName, .explore .detail {
visibility:hidden;
}
.explore .wqLink:hover .detail {
visibility:visible;
}
.explore .detail {
background:#000;
position:absolute;
top:128px;
left:0;
width:160px;
line-height:22px;
height:22px;
font-size:12px;
filter:alpha(opacity = 65);
}
.explore .detail .wqName {
font-size:16px;
padding:0 10px;
line-height:22px;
}
.explore .detail .info {
margin-top:10px;
}
</style>
</head>
<body>
<div id="topWrap">
<div class="wqSquare">
<div class="explore">
<ul>
<li> <a onmousedown="MI.Bos('wQBtnBigImgQun')" href="#" class="wqLink">
<div class="wqItem"> <img src="/img/2.jpg" class="wqPic" /> </div>
<div class="detail">
<div class="wqName">Boaer.com</div>
</div>
</a> </li>
</ul>
</div>
</div>
</div>
</body>
</html>
Ⅱ div+css 鼠标移到图片上显示文字内容
1、首先输入:
<!DOCTYPEhtml>
<html>
<head>
<metacharset="utf-8"/>
<title>鼠标悬停图片上显示文字在线演示www.divcss5.com</title>
<style>
img{border:0}/*css注释说明:设置图片边框为0*/
body{behavior:url("csshover.htc");text-align:center;}/*css注释说明:兼容ie6支持标签使用hover*/
Ⅲ js鼠标悬停显示文字实例
一、首先需要div布局:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>js悬停</title>
<style type="text/css">
p {
width: 200px;
height: 200px;
background-color: skyblue;
text-align: center;
line-height: 200px;
}
</style>
</head>
<body>
<p id="txt">我是一个DIV</p>
<script type="text/javascript">
var txt = document.getElementById('txt');
txt.setAttribute("title","鼠标悬停了");
</script>
</body>
</html>
二、div实在的在开发工具里面的代码效果如下截图:
Ⅳ ppt中怎么实现鼠标停在图片上显示文字
使用触发器可以实现这个功能,属于PPT中的动画效果的一种。
首先把你的文字和图片都放到幻灯片上,单击你的图片,在插入中可以找到有触发器的功能卡,按照里面的提示,可以选择你的触发对象,你的触发对象就是你要显示的动画。可以设置是不是鼠标悬停等各种选相。我就不一一的说了,太多了。
Ⅳ 网页中鼠标停留在图片上时会显示文字
<IMG
id=logo
alt=logo
src="images/logo.png">
这样当鼠标悬停在图片上面就会浮现alt=的内容,也就是logo
Ⅵ html如何实现鼠标悬停显示文字,鼠标移走文字消失。
通过css伪类中的“hover”来实现。
1、新建html文件,在body标签中添加一个div标签,div标签里面嵌套一个p标签,然后添加p标签内容,这里以“演示文本”为例:
Ⅶ Html中 鼠标悬浮在图片上它怎么显示出图片 title不是只能显示字体吗 不太懂
用title当然不行,要用js+css才能实现,下面是个例子:
<img src="https://iknow-base.bj.bcebos.com/matuanhuodong/XNRL-qb.png" onmouseover="pic2.style.display='block'" onmouseout="pic2.style.display='none'" />
<img id="pic2" src="https://gss0.bdstatic.com//zhongqinglv/banner/270X140.jpg" style="display:none" />
Ⅷ html5怎么实现鼠标悬停时显示文本
<a href=# title="这里是显示的文字">hello</a>
当鼠标悬停在 hello上一回就会有文字 这里是显示的文字 显示。
Ⅸ html鼠标悬停在文字显示图片
1、首先输入代码:<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/>
<title>鼠标悬停文字上显示图片</title>
Ⅹ 怎么实现鼠标悬停浏览器标题上显示关键词或者标签内容
这个最大的难度是获取鼠标悬停在标题栏的位置,因为浏览器都是标签式页面,页面标题的位置不固定,所以目前还没有办法可以用js控制,也可能是我没研究出来。
不过标题栏的效果是可以用js控制的,有一个专门针对浏览器标题栏的js效果插件Title.js,你可以下载来用