- 在女人上面怎么成为真正的男人 1个简单易行的方法揭秘 男人必看! 帮助用户解决问题
- PPT转视频教程:3步将PPT文件转为视频格式(附背景音乐添加) ppt转换视频
- MKV无损分割教程:音轨字幕同步切割,保留原画质! 视频转换器
- 微信AUD语音怎么转MP3?支持批量处理的音频转换方法 电脑应用
- 2D视频转3D超简单!一学就会的3D视频转换教程 视频转换器
- GIF编辑技巧:背景透明处理与自定义背景替换教程 视频转换器
- 如何将mp3转51单片机识别的文件 电脑应用
- 字幕文件制作指南:SRT/SSA/ASS格式字体样式与位置调整方法 视频转换器
- 刻录加密DVD防复制技巧:手把手教你加密光盘制作方法 常用软件
- 光盘加密软件推荐:如何刻录防复制的加密光盘及制作ISO文件教程 视频转换器
- 获取的GIF素材背景不透明,推荐使用专用GIF处理工具(非Photoshop等大型软件) 视频转换器
鼠标经过显示文字说明代码
狸窝 复制 收藏 保存到桌面 快速找教程方案 反馈需求 社会主义核心价值观 在线客服 马上注册 升级VIP
鼠标经过文字显示说明 :
<a title="要显示的文字">link</a>
<span title="要显示的文字">span</span>
<div title="要显示的文字">div</div>
.......
好多的标签都支持的
如果是图片还可以用<img alt="要显示的文字" src="你的图片">
鼠标经过文字时显示图片说明:
方法一:<CSS实现>推荐
<!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=gb2312" />
<title>鼠标经过效果</title>
</head>
<body>
<style type="text/css">
.thumbnail{
position: relative;
z-index: 0;
}
.thumbnail:hover{
background-color: transparent;
z-index: 50;
}
.thumbnail span{
position: absolute;
padding: 1px;
left: -1000px;
visibility: hidden;
color: black;
text-decoration: none;
}
.thumbnail span img{
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{
visibility: visible;
top: 17px;
left: 55px;
}
</style>
<a class="thumbnail" href="">鼠标点击这里
<span><img src="http://www.guangjiezu.com/images2/dxxpic.gif" width="165" height="26" border="0"></span>
</a>
</body>
</html>
注释:“鼠标点击这里”===》图片效果为:
<a class="thumbnail"><img src="/images/duanxiaoxi.gif" border="0" onClick="showDiv(this)"><span><img src="/images2/dxxpic.gif" width="165" height="26" border="0"></span></a>
方法二:<JS实现>不推荐
<!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>JS实现-鼠标经过文字时显示图片</title>
<script language="javascript">
function display1()
{
b.style.display="block";
}
function display2()
{
b.style.display="none";
}
</script>
</head>
<body>
<a href="#" onmouseover="display1()" onmouseout="display2()">鼠标移上来吧</a>
<img id="b" src="http://www.guangjiezu.com/images2/dxxpic.gif" alt="" title="" style="display:none" />
</body>
</html>
<a title="要显示的文字">link</a>
<span title="要显示的文字">span</span>
<div title="要显示的文字">div</div>
.......
好多的标签都支持的
如果是图片还可以用<img alt="要显示的文字" src="你的图片">
鼠标经过文字时显示图片说明:
方法一:<CSS实现>推荐
<!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=gb2312" />
<title>鼠标经过效果</title>
</head>
<body>
<style type="text/css">
.thumbnail{
position: relative;
z-index: 0;
}
.thumbnail:hover{
background-color: transparent;
z-index: 50;
}
.thumbnail span{
position: absolute;
padding: 1px;
left: -1000px;
visibility: hidden;
color: black;
text-decoration: none;
}
.thumbnail span img{
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{
visibility: visible;
top: 17px;
left: 55px;
}
</style>
<a class="thumbnail" href="">鼠标点击这里
<span><img src="http://www.guangjiezu.com/images2/dxxpic.gif" width="165" height="26" border="0"></span>
</a>
</body>
</html>
注释:“鼠标点击这里”===》图片效果为:
<a class="thumbnail"><img src="/images/duanxiaoxi.gif" border="0" onClick="showDiv(this)"><span><img src="/images2/dxxpic.gif" width="165" height="26" border="0"></span></a>
方法二:<JS实现>不推荐
<!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>JS实现-鼠标经过文字时显示图片</title>
<script language="javascript">
function display1()
{
b.style.display="block";
}
function display2()
{
b.style.display="none";
}
</script>
</head>
<body>
<a href="#" onmouseover="display1()" onmouseout="display2()">鼠标移上来吧</a>
<img id="b" src="http://www.guangjiezu.com/images2/dxxpic.gif" alt="" title="" style="display:none" />
</body>
</html>
狸窝是帮助用户解决问题 提供教程解决方案 在这个过程中有使用我们自己开发的软件 也有网上找的工具 只要帮助用户解决问题就好!在这个过程中我们的教程方案写作老师比较辛苦 有时为了一个教程要试验测试好几天及连续加班多日, 而大家的赞赏是一种肯定和表扬 不在于多少|打赏随意|只要你开心, 更像征一种鞭策和鼓励!!!