In the CSS tutorial of (www.bkjia.com), you can hover your mouse over the page to find the effect. No matter how the webpage window changes, the prompt layer remains in the ideal position and will not change, the compatibility is also good, because some very practical code for a link prompt function.
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Strict // EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd "> <Html xmlns =" http://www.w3.org/1999/xhtml "> <Head> <title> link hover prompt-bkjia.com </title> <meta http-equiv =" Content-Type "content =" text/html; charset = GB2312 "/> <style type =" text/css "> body {font: normal 12px Verdana} a # tip {position: relative; left: 75px; font-weight: bold;} a # tip: link, a # tip: hover {text-decoration: none; color: #000; display: block} a # tip span {display: none; text-decoration: none;} a # tip: hover # tip_info {display: block; border: 1px solid # F96; backgr Ound: # FFEFEF; padding: 10px 20px; position: absolute; top: 0px; left: 90px; color: #009933} </style>
Tip: the code can be modified before running!