Ⅰ 用dreamweaver如何做到鼠标滑过图片出现文字介绍
步骤如下:
1、启动Dreamweaver,ctrl+n新建html文档;
2、点击插入菜单图像命令,插入一个图片到设计视图;
3、点击插入的图标,属性面板左下角点击热点工具,这里选择矩形热点工具;
Ⅱ html 鼠标停留在移动的图片上后怎么显示文字,求代码;
title是图片显示的标题,alt是替换文字,即当图片显示错误的时候,会显示alt里面的文字。鼠标放上去都会显示title和alt这两个属性里面的文字,但title优先级高于alt。
但是
<img
alt=鼠标停留显示的文字<br>鼠标停留显示的文字>
这样是不行的,你鼠标放上去是不会换行的,
你可以这样
<img
alt=鼠标停留显示的文字
鼠标停留显示的文字>
这样就换行显示了
Ⅲ 网页怎么做鼠标移到图片就显示文字
<!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>
Ⅳ 网页中鼠标停留在图片上时会显示文字
<IMG
id=logo
alt=logo
src="images/logo.png">
这样当鼠标悬停在图片上面就会浮现alt=的内容,也就是logo
Ⅳ 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*/
Ⅵ html鼠标经过图片显示文字
给图片添加title
属性
<img
title="我是图片"/>
Ⅶ 如何在图片上制作鼠标滑过显示文字的效果
<title>鼠标经过效果</title>
</head>
<body>
<style type="text/css">
.thumbnail{
position: relative;
z-index: 0;
}
.thumbnail:hover{
background-color: transparent;
z-index: 50;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 1px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: 55px; /*position where enlarged image should offset horizontally */
}
</style>
<a class="thumbnail" href=链接>文字在这呢 <span><img src="图片地址" alt="图片在这" width="110" border="0"></span></a>
</body>
</html>
这个是鼠标经过文字,出现图片,不过效果是一样的,只要你把图片和文字的位置交换一下就okl了
Ⅷ 如何做到在Dreamweaver 鼠标指向图像时显示文字
在Dreamweaver网页设计中常常会需要设计鼠标指向图片时显示文字,具体操作步骤如下:
1、启动Dreamweaver cs4,点击“插入”中的“图像”,如图:
Ⅸ html网页中 如何 鼠标经过图片 然后旁边显示字体 或者 在另外一个模块内显示内容
<img src="路径" title="DREAM" alt=""/> title加东西就行了
Ⅹ 制作网页时,鼠标移动到某张图片后,会有文字显示,要怎样做,我使用的软件是DREAMWEAVER8
加入代码:
<img src="//图片路径" title="//显示文字" />
上述位置加入路径和文字即可。去掉//。