<!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> <title>JS实现的简单横向伸展二级菜单_网页代码
css横向导航条有两种方法 1. ul li a li{float:left} #navlist li, #navlist a{height:44px;display:block;} a{width:60px;background:red} 2.ul{font-size:0px;}或者ul{word-spacing:-5px;} li{font-size:14px;display:inline;width:60px;background:red} display:inline; -默认情况下,<