快速业务通道

css实现热点(hotspot,地图提示)

作者 佚名技术 来源 CSS编程 浏览 发布时间 2012-05-26

地图弹窗(map pop)具体演示

<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"">
<html xmlns="">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"
/>
<title>CSS实例讲解:地图提示(map pop)档</title>
<style type="text/css" media="all">
* { margin:0; padding:0;
}
img { border:0;
}
#show{ text-align:left;
}
ul { list-style-type:none; background: transparent
url() no-repeat 0 0;
width:350px; height:250px; border:1px solid #000;
}
ul li { display:inline;
}
ul li a { position:relative; display:block; text-decoration:none;
}
ul li a span.offset { position:absolute; margin-top:-9000px;
margin-left:-9000px; }
ul li a:hover span.offset, ul li a:focus span.offset, ul li a:active
span.offset { color: #000; background-image:none;
background-color:#ffffde; border:1px solid #000; display:block;
width:150px; height:auto; text-decoration:none; cursor:pointer;
}
ul li a:hover span.offset span, ul li a:focus span.offset span, ul li
a:active span.offset span { display:block; width:140px; margin:5px;
height:120px;
}
ul li a#map01 { width:80px; height:60px; margin-top:0;
margin-left:130px;
}
ul li a#map01:hover, ul li a#map01:focus, ul#cmp li a#map01:active {
background:transparent
url() no-repeat -130px
0px;
}
ul li a#map01:hover span.offset, ul li a#map01:focus span.offset, ul li
a#map01:active span.offset { margin-top:-1px; margin-left:230px;
}
ul li a#map02 { width:110px; height:75px; margin-top:-50px;
margin-left:235px;
}
ul li a#map02:hover, ul li a#map02:focus, ul li a#map02:active {
background:transparent
url() no-repeat -235px
-10px;
}
ul li a#map02:hover span.offset, ul li a#map02:focus span.offset, ul li
a#map02:active span.offset { margin-top:-11px; margin-left:125px;
}
ul li a#map03 { width:75px; height:95px; margin-top:3px;
margin-left:115px;
}
ul li a#map03:hover, ul li a#map03:focus, ul li a#map03:active {
background:transparent
url() no-repeat -115px
-88px;
}
ul li a#map03:hover span.offset, ul li a#map03:focus span.offset,ul li
a#map03:active span.offset { margin-top:-89px; margin-left:245px;
}
ul li a#map04 { width:110px; height:120px; margin-top:-60px;
margin-left:5px;
}
ul li a#map04:hover, ul li a#map04:focus, ul li a#map04:active {
background:transparent
url() no-repeat -5px
-123px;
}
ul li a#map04:hover span.offset, ul li a#map04:focus span.offset, ul li
a#map04:active span.offset { margin-top:-124px; margin-left:355px;
}
ul li a#map05 { width:95px; height:97px; margin-top:-90px;
margin-left:240px;
}
ul li a#map05:hover, ul li a#map05:focus, ul li a#map05:active {
background:transparent
url() no-repeat -240px
-153px;
}
ul li a#map05:hover span.offset, ul li a#map05:focus span.offset, ul li
a#map05:active span.offset { margin-top:-154px; margin-left:120px;
}
</style>
</head>
<body> <ul> <li><a id="map01"
href="#map01"><span class="offset"><img
src="" alt="Post Office"
/><span>This is the Popsville community <strong>Post
Office</strong>, your home of over-priced postage. Click map for
more</sp

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号