Css+div Design Example: Hover over the border changes
Source: Internet
Author: User
css| Design <! 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><title>untitled document</title> <meta http-equiv= "Content-type" content= "text/html; Charset=iso-8859-1 "/><style type=" Text/css ">p#outer {position:relative; float:left; margin-left:20px; Background:blue; #outer a {margin:0; background-color:blue;display:block;position:relative; border:2px dashed red;} #outer a:hover {border:2px dashed #CCFFCC;} #outer img {display:block;border:none;background: #ffffcc;p adding:4px;} </style></pead><body><p>hover over the image to the double border Effect</p><p ID = "outer" ><a href= "#" ></a> </p></body></ptml><script language= "Javascript" > var now = new Date (); DocuMent.write (" <noscript> </ Noscript>
--You can run the code to see the effects, or you can copy or save the source code. This code is provided by Tenkine page.
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.