一个清爽的button按钮样式是怎样的(button,web开发)

时间:2024-05-10 11:29:41 作者 : 石家庄SEO 分类 : web开发
  • TAG :

效果如下:
一个清爽的button按钮样式是怎样的

代码如下:


<html>
<head>
<title></title>
<style type="text/css">
.clear { /* generic container (i.e. div) for floating buttons */
overflow: hidden;
width: 100%;
}
a.button {
background: transparent url('IMG/bg_button_a.gif') no-repeat scroll top right;
color: #444;
display: block;
float: left;
font: normal 12px arial, sans-serif;
height: 24px;
margin-right: 6px;
padding-right: 18px; /* sliding doors padding */
text-decoration: none;
}
a.button span
{
background: transparent url('IMG/bg_button_span.gif') no-repeat;
display: block;
line-height: 14px;
padding: 5px 0 5px 18px;
}
a.button:active {
background-position: bottom right;
color: #000;
outline: none; /* hide dotted outline in Firefox */
}
a.button:active span {
background-position: bottom left;
padding: 6px 0 4px 18px; /* push text down 1px */
}
</style>
</head>
<body>
<a class="button" href="javascript:void(0);"><span>按钮</span></a>
</body>
</html>


这是IMG文件夹下的两张图片:

bg_button_a:
一个清爽的button按钮样式是怎样的
bg_button_span:
一个清爽的button按钮样式是怎样的

 </div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:一个清爽的button按钮样式是怎样的的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:CSS3中background-clip和background-origin有什么区别下一篇:

9 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18