首页 > Other > 制作 Facebook 风格的网页按钮(无需图片) – 代码分享 – 开源中国社区

制作 Facebook 风格的网页按钮(无需图片) – 代码分享 – 开源中国社区

facebook.html

<!– Created by Barrett at RRPowered.com –>
<!– File name facebook.html –>
<html>
<head>
<title>
FaceBook style buttons</title>
<link rel=”stylesheet” type=”text/css” href=”facebook.css”>
</link>
</head>
<body>
<h1>
FaceBook style buttons</h1>
<div class=”button_outside_border_green”>
<div class=”button_inside_border_green”>
Sign Up </div>
</div>
<br />
<div class=”button_outside_border_blue”>
<div class=”button_inside_border_blue”>
Login </div>
</div>
</body>
</html>

facebook.css

/*Created by Barrett at RRPowered.com*/
/*File name facebook.css*/

body{
font-family: “lucida grande”, tahoma, verdana, arial, sans-serif;
font-weight:bold;
font-size:12px;
margin:100px;
}
/* #68a64c background color
#98c286 top border
#3b6e22 border
#2c5115 border bottom
#609946 hover background color */
.button_outside_border_green{
width:100px;
border:solid #3b6e22 1px;
border-bottom:solid #2c5115 1px;
cursor:pointer;
}
.button_inside_border_green{
padding:6px 0 6px 0;
background-color:#68a64c;
border-top:solid #98c286 1px;
text-align:center;
color:#ffffff;
}
div.button_inside_border_green:active{
background-color:#609946;
}
/* #5c75a9 background color
#8a9cc2 top border
#29447e border
#1a356e border bottom
#4f6aa3 hover background color */
.button_outside_border_blue{
width:100px;
border:solid #29447e 1px;
border-bottom:solid #1a356e 1px;
cursor:pointer;
}
.button_inside_border_blue{
padding:6px 0 6px 0;
background-color:#5c75a9;
border-top:solid #8a9cc2 1px;
text-align:center;
color:#ffffff;
}
div.button_inside_border_blue:active{
background-color:#4f6aa3;
}

分类:Other 标签:, ,
  1. 还没有评论。
  1. No trackbacks yet.

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: