Use CSS to implement dynamic prompt information

Source: Internet
Author: User
<Style>
Body {Font: verdena; font-size: 14px; color: #000}
H1 {Font: verdena; font-size: 22px; color: #000}
H2 {Font: verdena; font-size: 15px; color: #000; text-align: Left}
Div # Main {margin: 30}
/* Key Code Start */
A.info {
Position: relative; Z-index: 0; Background-color: # CCC; color: #000; text-Decoration: None}
A.info: hover {
Z-index: 1; Background-color: # ff0}
A.info span {
Display: None}
A.info: hover span {display: block; position: absolute; top: 25px; left: 60px; width: 130px; Border: 1px solid # 0cf; Background-color: # CFF; color: #000; text-align: Center}
/* End the key code */
</Style>
<Body>
<Div id = "Main">
<H1> Use CSS to implement dynamic prompts <H1> Can I implement information prompting without JS ?! (Except title and ALT) <H2> by [51js.com] zdzhuo </H2>
<H2> ie5.5 +, opera7.0, netscap7.0, and mozilla1.4 can all be used properly </H2>
<Br> <a class = "info" href = "javascript :; "> <B> This is the prompt message </B> <span> www.51js.com </span> </a> that can be implemented without JS <a class =" info" href = "javascript :; "> <B> simple CSS implementation </B> <span> <br> easy to understand </span> </a> <br> <br> <a class = "info" href = "javascript :; "> <span> This Is My dedicated profile picture on 51js.com </span> </a> <br> <BR>
</Div>
</Body>

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.