代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
Css
】
CSS圆角按钮 IE 火狐显示正常
作者:
Dezai.CN
/ 发布于
2013/4/25
/
602
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Stu Nicholls | CSSplay | Another snazzy menu</title> <style type="text/css"> #outer {display:block; position:relative; background:#eee; padding:2em; text-align:center;} #outer h2 {margin-bottom:1em;} #navigation {background:transparent; margin:0 auto; height:3em; /* hide overflow:hidden from IE5/Mac */ /* \*/ overflow: hidden; /* */ } #navigation ul {margin:0; padding:0; list-style-type:none; background:transparent;} #navigation li {display:block; float:left; margin:0 1px;} .snazzy {background:transparent;} .snazzy span {text-align:center; color:#fff; margin:0; font-weight:normal;} .b1, .b2, .b3, .b4 {display:block; font-size:1px; /* hide overflow:hidden from IE5/Mac */ /* \*/ overflow: hidden; /* */ } .b1, .b2, .b3 {height:1px;} .b2, .b3, .b4 {border-left:1px solid #fff; border-right:1px solid #fff;} .b1 {margin:0 5px; background:#fff;} .b2 {margin:0 3px; border-width:0 2px;} .b3 {margin:0 2px;} .b4 {height:2px; margin:0 1px;} .boxcontent {display:block; border-left:1px solid #fff; border-right:1px solid #fff;} a.menu, a.menu:visited {display:block; text-decoration:none; width:5.5em;} a.menu:hover {background:transparent; cursor:pointer;} a.menu:hover span {padding-top:10px; background:#888;} a:menu:hover b {background:#888;} .red {background:#c00;} .orange {background:#f90;} .yellow {background:#b8b800;} .green {background:#090;} .blue {background:#00c;} .indigo {background:#309;} .violet {background:#c6c;} .grey {background:#888;} a:hover b.red {background:#888;} a:hover b.orange {background:#888;} a:hover b.yellow {background:#888;} a:hover b.green {background:#888;} a:hover b.blue {background:#888;} a:hover b.indigo {background:#888;} a:hover b.violet {background:#888;} .active {padding-top:10px; background:#888; cursor:default;} #navigation2 {clear:both; background:transparent; margin:0 auto; height:3em; /* hide overflow:hidden from IE5/Mac */ /* \*/ overflow: hidden; /* */ } #navigation2 ul {margin:0; padding:0; list-style-type:none; background:transparent;} #navigation2 li {display:block; float:left; margin:0 1px;} .pad {display:block; height:1em; /* hide overflow:hidden from IE5/Mac */ /* \*/ overflow: hidden; /* */ } a.menu2, a.menu2:visited {display:block; text-decoration:none; width:5.5em;} a.menu2:hover {background:transparent; cursor:pointer;} a.menu2:hover .boxcontent {padding-bottom:0.8em; background:#888;} a.menu2:hover .pad {height:0.2em;} </style> </head> <body> <div id="wrapper"><!-- end of page_head --> <div id="info"> <h2>More snazzy border menus</h2> <div id="outer"> <div id="navigation"> <ul> <li> <a class="menu" href="#nogo"><b class="snazzy"><span class="boxcontent red">item #1</span> <b class="b4 red"></b><b class="b3 red"></b><b class="b2 red"></b><b class="b1"></b> </b></a> </li> <li> <a class="menu" href="#nogo"><b class="snazzy"><span class="boxcontent orange active">item #2</span> <b class="b4 grey"></b><b class="b3 grey"></b><b class="b2 grey"></b><b class="b1"></b> </b></a> </li> <li> <a class="menu" href="#nogo"><b class="snazzy"><span class="boxcontent yellow">item #3</span> <b class="b4 yellow"></b><b class="b3 yellow"></b><b class="b2 yellow"></b><b class="b1"></b> </b></a> </li> <li> <a class="menu" href="#nogo"><b class="snazzy"><span class="boxcontent green">item #4</span> <b class="b4 green"></b><b class="b3 green"></b><b class="b2 green"></b><b class="b1"></b> </b></a> </li> <li> <a class="menu" href="#nogo"><b class="snazzy"><span class="boxcontent blue">item #5</span> <b class="b4 blue"></b><b class="b3 blue"></b><b class="b2 blue"></b><b class="b1"></b> </b></a> </li> <li> <a class="menu" href="#nogo"><b class="snazzy"><span class="boxcontent indigo">item #6</span> <b class="b4 indigo"></b><b class="b3 indigo"></b><b class="b2 indigo"></b><b class="b1"></b> </b></a> </li> <li> <a class="menu" href="#nogo"><b class="snazzy"><span class="boxcontent violet">item #7</span> <b class="b4 violet"></b><b class="b3 violet"></b><b class="b2 violet"></b><b class="b1"></b> </b></a> </li> </ul> </div> <!-- end of navigation --> <h3>TAB DOWN</h3> <h3>TAB UP</h3> <div id="navigation2"> <ul> <li> <a class="menu2" href="#nogo"><b class="pad"></b><b class="snazzy"><b class="b1"></b><b class="b2 red"></b><b class="b3 red"></b><b class="b4 red"></b><span class="boxcontent red">item #1</span> </b></a> </li> <li> <a class="menu2" href="#nogo"><b class="pad"></b><b class="snazzy"><b class="b1"></b><b class="b2 orange"></b><b class="b3 orange"></b><b class="b4 orange"></b><span class="boxcontent orange">item #2</span> </b></a> </li> <li> <a class="menu2" href="#nogo"><b class="pad"></b><b class="snazzy"><b class="b1"></b><b class="b2 yellow"></b><b class="b3 yellow"></b><b class="b4 yellow"></b><span class="boxcontent yellow">item #3</span> </b></a> </li> <li> <a class="menu2" href="#nogo"><b class="pad"></b><b class="snazzy"><b class="b1"></b><b class="b2 green"></b><b class="b3 green"></b><b class="b4 green"></b><span class="boxcontent green">item #4</span> </b></a> </li> <li> <a class="menu2" href="#nogo"><b class="pad"></b><b class="snazzy"><b class="b1"></b><b class="b2 blue"></b><b class="b3 blue"></b><b class="b4 blue"></b><span class="boxcontent blue">item #5</span> </b></a> </li> <li> <a class="menu2" href="#nogo"><b class="pad"></b><b class="snazzy"><b class="b1"></b><b class="b2 indigo"></b><b class="b3 indigo"></b><b class="b4 indigo"></b><span class="boxcontent indigo">item #6</span> </b></a> </li> <li> <a class="menu2" href="#nogo"><b class="pad"></b><b class="snazzy"><b class="b1"></b><b class="b2 violet"></b><b class="b3 violet"></b><b class="b4 violet"></b><span class="boxcontent violet">item #7</span> </b></a> </li> </ul> </div> <!-- end of navigation2 --> </div> <!-- end of outer --> </div> <!-- end of info --> <!-- end of content --> <!-- end of page_foot --> </div> <!-- end of wrapper --> </body> </html>
试试其它关键字
CSS圆角
同语言下
.
前端PC-移动端CSS公共样式+HTML
.
手机端页面通用样式
.
H5页面通用头部设置
.
elect默认样式美化代码兼容移动端和pc端
.
按钮效果 css
.
唤醒app
.
放大效果
.
html5+css3实现上拉和下拉刷新
.
html上传图片后,在页面显示上传的图片
.
html5实现点击弹出图片
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
Dezai.CN
贡献的其它代码
(
4037
)
.
多线程Socket服务器模块
.
生成随机密码
.
清除浮动样式
.
弹出窗口居中
.
抓取url的函数
.
使用base HTTP验证
.
div模拟iframe嵌入效果
.
通过header转向的方法
.
Session操作类
.
执行sqlite输入插入操作后获得自动编号的ID
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3