Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the custom button style in the css3 fillet style

2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

Css3 rounded style custom button style is what, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this can learn, I hope you can harvest.

The code is as follows:

.btn-style-01{

border-style:none;

padding:8px 30px;

line-height:24px;

color:#fff;

font:16px "Microsoft YaHei", Verdana, Geneva, sans-serif;

cursor:pointer;

border:1px #ae7d0a solid;

-webkit-box-shadow:inset 0px 0px 1px #fff;

-moz-box-shadow:inset 0px 0px 1px #fff;

box-shadow:inset 0px 0px 1px #fff;/* Inner glow effect */

-webkit-border-radius:4px;

-moz-border-radius:4px;

border-radius:4px;/* border fillet */

text-shadow:1px 1px 0px #b67f01;/* font shadow effect */

background-color:#feb100;

background-image: -webkit-gradient(linear, 0 0%, 0 100%, from(#feb100), to(#e8a201));

background-image: -webkit-linear-gradient(top, #feb100 0%, #e8a201 100%);

background-image: -moz-linear-gradient(top, #feb100 0%, #e8a201 100%);

background-image: -ms-linear-gradient(top, #feb100 0%, #e8a201 100%);

background-image: -o-linear-gradient(top, #feb100 0%, #e8a201 100%);

background-image: linear-gradient(top, #feb100 0%, #e8a201 100%);/* color gradient effect */

}

.btn-style-01:hover {

background-color:#e8a201;

background-image: -webkit-gradient(linear, 0 0%, 0 100%, from(#e8a201), to(#feb100));

background-image: -webkit-linear-gradient(top, #e8a201 0%, #feb100 100%);

background-image: -moz-linear-gradient(top, #e8a201 0%, #feb100 100%);

background-image: -ms-linear-gradient(top, #e8a201 0%, #feb100 100%);

background-image: -o-linear-gradient(top, #e8a201 0%, #feb100 100%);

background-image: linear-gradient(top, #e8a201 0%, #feb100 100%);

}

Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 215

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report