Html:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title> Hidden text </title>
<link href= "Style.css" rel= "stylesheet" type= "Text/css"/>
<body>
<H1 id= "logo" ><a href= "#" > Blog </a></body>
--------------------------------------------------------------------points What's the secant look at----------------------------------------------------------------------------
Css:
Way One:
#logo a {
Background:url (http://images.cnblogs.com/adminlogo.gif) left top no-repeat;
height:51px;
width:133px;
text-indent:200px;
White-space:nowrap;
Overflow:hidden;
Display:block;
}
Way two:
#logo a {
Background:url (http://images.cnblogs.com/adminlogo.gif) left top no-repeat;
height:51px;
width:133px;
text-indent:-200px;
White-space:nowrap;
Display:block;
}
Effect:
Use of CSS text-indent hidden text with a picture when login