nav导航代码,图文一体导航代码

 时间:2024-10-17 03:58:08

1、<style>ul#nav{margin:0 auto; text-align:center;}ul#nav li{display:inline-block;}a{ text-decoration:none; color:gray; padding:0 20px;}span{width:36px; height:30.5px; display:inline-block;}#p1{ background:url(icons.png) no-repeat left -5px;}#p2{ background:url(icons.png) no-repeat 0 -66px;}#p3{ background:url(icons.png) no-repeat 0 -126px;}#p4{ background:url(icons.png) no-repeat 0 -186px;}#p5{ background:url(icons.png) no-repeat 0 -246px;}a:hover #p1{ background:url(icons.png) no-repeat 0 -36px;}a:hover #p2{ background:url(icons.png) no-repeat 0 -96px;}a:hover #p3{ background:url(icons.png) no-repeat 0 -156px;}a:hover #p4{ background:url(icons.png) no-repeat 0 -216px;}a:hover #p5{ background:url(icons.png) no-repeat 0 -276px;}#nav li a:hover {color:red;}</style>

2、<body><ul id="nav"> <li><a href="#"><span id="p1"></span>微信官号</a></li> <li><a href="#"><span id="p2"></span>RSS订阅</a></li> <li><a href="#"><span id="p3"></span>微博官号</a></li> <li><a href="#"><span id="p4"></span>首页回顾</a></li> <li><a href="#"><span id="p5"></span>建议反馈</a></li></ul></body>

  • 2019年全国大学生英语竞赛c类初赛赛卷作文怎么写
  • HTML的内嵌式怎么写?
  • 如何成功学好一门大学课程
  • 求e^(x+y)的二重积分,其中D是闭区域|x|+|y|<=1 高数课本上的题目,答案是e-
  • 网页改变字体颜色代码
  • 热门搜索
    和氏羊奶粉怎么样 怎么取网名 扁平疣怎么治 年化收益率怎么算 松花蛋怎么吃 心得怎么写 淘宝怎么加好友 怎么保护地球 细小怎么治 苹果手机丢了怎么定位