English
Do you need to use CSS code to simulate techweb website navigation? The effect is almost the same as the real thing!
<!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" /> <style type="text/css" > <!-- #siteNav { clear: both; float:left; width:750px; padding-left: 1px; background: #fff; font-size:12px; font-weight: bold; line-height:normal; border -bottom:2px solid #84B0C7; voice-family: ""}""; voice-family: inherit; width: 749px; } #siteNav ul { margin:0; padding:0; list-style:none; } #siteNav li { display:inline; margin:0; padding:0; } #siteNav a { float:left; background:url() no-repeat left top; margin:0; padding:0 0 0 4px; text-decoration :none; } #siteNav a span { float:left; display:block; background:url() no-repeat right top; padding:5px 11px 4px 5px; color:#036; } /* Commented Backslash Hack hides rule from IE5 -Mac */ #siteNav a span { float:none } /* End IE5-Mac hack */ #siteNav a:hover span { color:#036; } #siteNav a:hover { background-position:0% -42px ; } #siteNav a:hover span { background-position:100% -42px; } #siteNav #sel a { background-position:0% -42px; } #siteNav #sel a span { background-position:100% -42px ; } --> </style> <title>Demo</title> </head> <body> <div id="siteNav"> <ul> <li id="sel"><a href="#" ><span>Homepage</span></a></li> <li><a href="#"><span>Information</span></a></li> <li><a href ="#"><span>Characters</span></a></li> <li><a href="#"><span>Management</span></a></li> <li ><a href="#"><span>Operation</span></a></li> <li><a href="#"><span>Finance</span></a></ li> <li><a href="#"><span>Technology</span></a></li> <li><a href="#"><span>Products</span></ a></li> <li><a href="#"><span>Network</span></a></li> <li><a href="#"><span>Telecommunications</li> span></a></li> <li><a href="#"><span>Comments</span></a></li> <li><a href="#"><span >Blog</span></a></li> <li><a href="#"><span>Friends</span></a></li> <li><a href="# "><span>Scroll</span></a></li> <li><a href="#"><span>Search</span></a></li> <li><a href="#"><span>WAP</span></a></li> </ul> </div> </body> </html>