"CSS" image map

Source: Internet
Author: User

1 <!DOCTYPE HTML>2 <HTMLxmlns= "http://www.w3.org/1999/xhtml">3 <Head>4 <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" />5 <title>Untitled Document</title>6 <styletype= "Text/css">7 #pic{8 width:640px;9 Height:425px;Ten position:relative;/** Key points so that the included links can be absolutely positioned relative to the edges of the Div*/} One #pic ul{ A margin:0; - padding:0; - List-style:None;/** Do not display list symbols, set the margin and padding of the list to 0*/ the     } - #pic a{ - position:Absolute; - width:100px; + Height:120px; - text-indent:-1000em;/** Absolute positioning of the anchor chain, they will move to the upper left corner of the container div. Then you can position them on the right person, form a hotspot, set the width and height create the area link text that needs to be clicked, and use a large negative number as the text indent so that they disappear from the screen. */} + #pic. Rich a{ A Top:15px; at  Left:95px; -     } - #pic. Andy a{ - Top:115px; -  Left:280px;} - #pic. Jeremy a{ in Top:250px; -  Left:425px;} to #pic a:hover{/** Create rollover effect when the mouse rests on solid line*/ + Border:1px solid #fff;} - </style> the </Head> *  $ <Body>Panax Notoginseng <DivID= "Pic"> - <imgsrc=".. /cssmastery/chapter05/images/group-photo.jpg "width= "640"Height= "425"alt= "Richard, Andy and Jeremy"/> the  + <ul> A <Liclass= "Rich"> the <ahref= "http://www.clagnut.com/"title= "Richard Rutter">Richard Rutter</a> + </Li> - <Liclass= "Andy"> $ <ahref= "http://www.andybudd.com/"title= "Andy Budd">Andy Budd</a> $ </Li> - <Liclass= "Jeremy"> - <ahref= "http://www.adactio.com/"title= "Jeremy Keith">Jeremy Keith</a> the </Li> - </ul>Wuyi </Div> the </Body> - </HTML>

"CSS" image map

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.