CSS example: map prompt

Source: Internet
Author: User
Author's BLOG: http://www.planabc.net/
Map pop demo
Run code box
<! 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> CSS instance description: map pop file </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 (/articleimg/2007/03/4514/map_flat.jpg) no-repeat 0;
Width: 350px;
Height: 250px;
Border: 1px solid #000;
}
Ul li {
Display: inline;
}
Ul li {
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 (/articleimg/2007/03/4514/map_flat_on.jpg) 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;
1st 2 3 4 5 6 7 8 9 10 11 pages

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.