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