首 页
网络学院
视频教程
资源下载
HOT
实例教程
图文教程
专题中心
学习社区
繁體中文
当前位置:
首页
>
图文教程
>
网页制作
>
CSS样式表
> CSS Cookbook 创建文字导航菜单和翻转特效
CSS样式表
CSS Sprites 技术分析
csdn 博客的 css样式 v5
CSS 实例实现清除浮动
CSS Sprites 圆角制作教程
关于css @import url()总结
一个非常精典的纯CSS漫画,登峰造极.
css 背景透明 实现代码
css 横排 实现代码
CSS 像素图制作攻略
CSS 实现绝对底部一个完美解决方案
CSS 代码质量提高的10条实用技巧
CSS 扑克牌效果实现代码
margin 负值引起的层级(z-index)问题
关于Firefox下截取后省略号的问题
14个华丽的javascript图表资源和插件
IE img多余5像素空白解决方法
css 不同媒介的显示样式控制方式
打印网页中不打印页面中的某些内容
CSS Sprites 图片整合技术分析
文字超过宽度显示省略号(无js全兼容)
No.
«
‹
76
77
78
79
›
»
技术文章搜索
关键字
CSS样式表 中的 CSS Cookbook 创建文字导航菜单和翻转特效
出处:
互联网
整理:
软晨网(RuanChen.com)
发布:
2010-01-10
浏览: 97 ::
收藏到网摘: n/a
CSS Cookbook创建水平导航菜单
区别div和span、relative和absolute、display和visibility
<!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>CSS Cookbook例子 创建文字导航菜单和翻转特效 </title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <style type="text/css"><!-- #navsite p { display: none } #navsite { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:0.7em; font-weight:bold; width:12em; border-right:1px solid #666; padding:0; margin-bottom:1em; background-color:#9cc; color:#333; } #navsite ul { list-style:none; margin:0; padding:0; } #navsite ul li { margin:0; border-top:1px solid #003; } #navsite ul li a { display:block; padding:2px 2px 2px 0.5em; border-left:10px solid #369; border-right:1px solid #69c; border-bottom:1px solid #369; background-color:#036; color:#fff; text-decoration:none; width:100%; } html>body #navsite ul li a { width:auto; } #navsite ul li a:hover { border-left:10px solid #036; border-right:1px solid #69c; border-bottom:1px solid #369; background-color:#69f; color:#fff; } --></style> </head> <body> <div id="navsite"> <p>Site navigation:</p> <ul> <li><a href="/">Home</a></li> <li><a href="/about/">About</a></li> <li><a href="/archives/">Archives</a></li> <li><a href="/writing/">Writing</a></li> <li><a href="/speaking/">Speaking</a></li> <li><a href="/Contact/">Contact</a></li> </ul> </div> </body> </html>
提示:您可以先修改部分代码再运行
CSS Cookbook创建水平导航菜单
区别div和span、relative和absolute、display和visibility
评论 (0)
All
登陆
还没注册?