css样式 .remind span {display:block;margin-top:-22px;} .remind a:hover {padding-top:22px;} .remind a {float:left;overflow:hidden;} .remind{height:22px;line-height:22px;overflow:hidden;padding-left:10px;} —————————————————————————————————————————— html代码 <div class="remind"><a href="#"><span>如需修改帐号,请发送修改信息及相关证明至邮箱</span>提示</a></div> —————————————————————————————————————————— <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>鼠标经过变换文字</title> <style> #Menu { width:500px; margin:50px auto; border:1px solid #CCC; overflow:hidden; } #Menu ul { margin:0; padding:0; list-style:none; } #Menu li { width:100px; height:22px; line-height:22px; float:left; overflow:hidden; text-align:center; } #Menu a { width:100px; float:left; overflow:hidden; } #Menu span { display:block; margin-top:-22px; } #Menu a:hover { padding-top:22px; } </style> </head> <body> <ul id="Menu"> <li><a href="#"><span>HOME</span>首页</a></li> <li><a href="#"><span>NEWS</span>新闻</a></li> <li><a href="#"><span>ABOUT</span>关于</a></li> <li><a href="#"><span>CONTACT</span>联系</a></li> <li><a href="#"><span>照片</span>PHOTO</a></li> </ul> </body> </html> |
关于我们|手机版|小黑屋|地图|【道勤网】-www.daoqin.net 软件视频自学教程|免费教程|自学电脑|3D教程|平面教程|影视动画教程|办公教程|机械设计教程|网站设计教程 ( 皖ICP备15000319号-1 )
GMT+8, 2024-12-19 12:15