Use CSS filter to do the mouse slide over the picture effect _ experience Exchange
Source: Internet
Author: User
First, let's look at a simple example.
<textarea id="runcode30105"><! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; charset=gb2312 "/> <title>http://www.cssrain.cn</title> <style> *{margin:0; padding:0;} body{ margin:0 Auto; font-size:12px;} . model{margin:0 auto; width:30px;. Model a:hover{Text-decoration:none;}. Model A img{border: #fff 1px solid;}. Model A:h Over img{border: #888 1px dotted;}. Model A span{padding:0; display:block; width:80px; height:50px; margin-top:-32px; ove Rflow:hidden; line-height:14px; Filter:alpha (opacity=0); opacity:.0; Cursor:pointer; Text-align:center;} </style> </pead> <body> </body> </ptml></textarea>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
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