Css Simulated title and alt prompts

Source: Internet
Author: User
<Style>
. Info {position: relative; background: # fff; color: #666; text-decoration: none; font-size: 12px; width: 150px; text-align: center; border: 1px solid # ccc; height: 25px; line-height: 25px;}/* set the link property. Be sure to set it to relative so that the prompt layer can follow the link */
. Info: hover {background: # eee; color: #333 ;}
. Info span {display: none}/* set the span to a hidden state */
. Info: hover span/* set the span attribute of hover to the rendering state, and set the position of the prompt Layer */{display: block; position: absolute; top: 30px; left: 60px; width: 130px;
Border: 1px solid # ff0000; background: # fff; color: #000; padding: 5px; text-align: left ;}
</Style>
<Body>
<A class = "info" href = "http://www.achome.cn"> www.achome.cn <span> This is my personal blog, which contains some website design and production stuff </span> </a>
<A class = "info" href = "http://www.achome.cn"> www.achome.cn <span> This is my personal blog, which contains some website design and production stuff, I hope you can communicate with each other. </span> </a>
<A class = "info" href = "http://www.achome.cn"> www.achome.cn <span> This is my personal blog, which contains some website design and production stuff, I hope you can communicate with each other. </span> </a>
<A class = "info" href = "http://www.achome.cn"> www.achome.cn <span> This is my personal blog, which contains some website design and production stuff, I hope you can communicate with each other. </span> </a>
<A class = "info" href = "http://www.achome.cn"> www.achome.cn <span> This is my personal blog, which contains some website design and production stuff, I hope you can communicate with each other. </span> </a>
</Body>

Effect demo http://www.blueidea.com/tech/web/2006/4171.asp

Related Article

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.