search
HomeWeb Front-endHTML Tutorial5款漂亮的css按钮_html/css_WEB-ITnose

以下按钮均由按钮css生成器: http://buttoncssgenerator.com/ 生成,并支持各大主流浏览器,

1、深蓝色专业典雅(带阴影)

html:  <a href='#' class='className'>css</a>  css:  .className{       line-height:46px;      height:46px;      width:154px;      color:#ffffff;            font-size:20px;      font-weight:bold;      font-family:Arial;      background:-webkit-gradient(linear, left top, left bottom, color-start(0.05, #599bb3), color-stop(1, #408c99));      background:-moz-linear-gradient(top, #599bb3 5%, #408c99 100%);      background:-o-linear-gradient(top, #599bb3 5%, #408c99 100%);      background:-ms-linear-gradient(top, #599bb3 5%, #408c99 100%);      background:linear-gradient(to bottom, #599bb3 5%, #408c99 100%);      background:-webkit-linear-gradient(top, #599bb3 5%, #408c99 100%);      filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#599bb3', endColorstr='#408c99',GradientType=0);      border:0px solid #dcdcdc;      -webkit-border-top-left-radius:8px;      -moz-border-radius-topleft:8px;      border-top-left-radius:8px;      -webkit-border-top-right-radius:8px;      -moz-border-radius-topright:8px;      border-top-right-radius:8px;      -webkit-border-bottom-left-radius:8px;      -moz-border-radius-bottomleft:8px;      border-bottom-left-radius:8px;      -webkit-border-bottom-right-radius:8px;      -moz-border-radius-bottomright:8px;      border-bottom-right-radius:8px;      -moz-box-shadow:0px 10px 14px -7px #276873;      -webkit-box-shadow:0px 10px 14px -7px #276873;      box-shadow:0px 10px 14px -7px #276873;      text-align:center;      display:inline-block;      text-decoration:none;  }  .className:hover {            background:-webkit-gradient(linear, left top, left bottom, color-start(0.05, #408c99), color-stop(1, #599bb3));      background:-moz-linear-gradient(top, #408c99 5%, #599bb3 100%);      background:-o-linear-gradient(top, #408c99 5%, #599bb3 100%);      background:-ms-linear-gradient(top, #408c99 5%, #599bb3 100%);      background:linear-gradient(to bottom, #408c99 5%, #599bb3 100%);      background:-webkit-linear-gradient(top, #408c99 5%, #599bb3 100%);      filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#408c99', endColorstr='#599bb3',GradientType=0);  }  

 

  

 2、浅蓝色

.className{       line-height:30px;      height:30px;      width:80px;      color:#ffffff;            font-size:15px;      font-weight:bold;      font-family:Arial;      background:-webkit-gradient(linear, left top, left bottom, color-start(0.05, #79bbff), color-stop(1, #378de5));      background:-moz-linear-gradient(top, #79bbff 5%, #378de5 100%);      background:-o-linear-gradient(top, #79bbff 5%, #378de5 100%);      background:-ms-linear-gradient(top, #79bbff 5%, #378de5 100%);      background:linear-gradient(to bottom, #79bbff 5%, #378de5 100%);      background:-webkit-linear-gradient(top, #79bbff 5%, #378de5 100%);      filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#79bbff', endColorstr='#378de5',GradientType=0);      border:1px solid #84bbf3;      -webkit-border-top-left-radius:6px;      -moz-border-radius-topleft:6px;      border-top-left-radius:6px;      -webkit-border-top-right-radius:6px;      -moz-border-radius-topright:6px;      border-top-right-radius:6px;      -webkit-border-bottom-left-radius:6px;      -moz-border-radius-bottomleft:6px;      border-bottom-left-radius:6px;      -webkit-border-bottom-right-radius:6px;      -moz-border-radius-bottomright:6px;      border-bottom-right-radius:6px;      -moz-box-shadow: inset 0px 1px 0px 0px #bbdaf7;      -webkit-box-shadow: inset 0px 1px 0px 0px #bbdaf7;      box-shadow: inset 0px 1px 0px 0px #bbdaf7;      text-align:center;      display:inline-block;      text-decoration:none;  }  .className:hover {            background:-webkit-gradient(linear, left top, left bottom, color-start(0.05, #378de5), color-stop(1, #79bbff));      background:-moz-linear-gradient(top, #378de5 5%, #79bbff 100%);      background:-o-linear-gradient(top, #378de5 5%, #79bbff 100%);      background:-ms-linear-gradient(top, #378de5 5%, #79bbff 100%);      background:linear-gradient(to bottom, #378de5 5%, #79bbff 100%);      background:-webkit-linear-gradient(top, #378de5 5%, #79bbff 100%);      filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#378de5', endColorstr='#79bbff',GradientType=0);  }  

     

 

 3、橙色

.className{       line-height:29px;      height:29px;      width:100px;      color:#333333;            font-size:15px;      font-weight:bold;      font-family:Arial;      background:-webkit-gradient(linear, left top, left bottom, color-start(0.05, #ffec64), color-stop(1, #ffab23));      background:-moz-linear-gradient(top, #ffec64 5%, #ffab23 100%);      background:-o-linear-gradient(top, #ffec64 5%, #ffab23 100%);      background:-ms-linear-gradient(top, #ffec64 5%, #ffab23 100%);      background:linear-gradient(to bottom, #ffec64 5%, #ffab23 100%);      background:-webkit-linear-gradient(top, #ffec64 5%, #ffab23 100%);      filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffec64', endColorstr='#ffab23',GradientType=0);      border:1px solid #ffaa22;      -webkit-border-top-left-radius:6px;      -moz-border-radius-topleft:6px;      border-top-left-radius:6px;      -webkit-border-top-right-radius:6px;      -moz-border-radius-topright:6px;      border-top-right-radius:6px;      -webkit-border-bottom-left-radius:6px;      -moz-border-radius-bottomleft:6px;      border-bottom-left-radius:6px;      -webkit-border-bottom-right-radius:6px;      -moz-border-radius-bottomright:6px;      border-bottom-right-radius:6px;      -moz-box-shadow: inset 0px 1px 0px 0px #fff6af;      -webkit-box-shadow: inset 0px 1px 0px 0px #fff6af;      box-shadow: inset 0px 1px 0px 0px #fff6af;      text-align:center;      display:inline-block;      text-decoration:none;  }  .className:hover {            background:-webkit-gradient(linear, left top, left bottom, color-start(0.05, #ffab23), color-stop(1, #ffec64));      background:-moz-linear-gradient(top, #ffab23 5%, #ffec64 100%);      background:-o-linear-gradient(top, #ffab23 5%, #ffec64 100%);      background:-ms-linear-gradient(top, #ffab23 5%, #ffec64 100%);      background:linear-gradient(to bottom, #ffab23 5%, #ffec64 100%);      background:-webkit-linear-gradient(top, #ffab23 5%, #ffec64 100%);      filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffab23', endColorstr='#ffec64',GradientType=0);  }  

     

 

 4、灰色立体感

.className{       line-height:34px;      height:34px;      width:84px;      color:#3a8a9e;            font-size:16px;      font-weight:normal;      font-family:Arial;      background:-webkit-gradient(linear, left top, left bottom, color-start(0.05, #ededed), color-stop(1, #bab1ba));      background:-moz-linear-gradient(top, #ededed 5%, #bab1ba 100%);      background:-o-linear-gradient(top, #ededed 5%, #bab1ba 100%);      background:-ms-linear-gradient(top, #ededed 5%, #bab1ba 100%);      background:linear-gradient(to bottom, #ededed 5%, #bab1ba 100%);      background:-webkit-linear-gradient(top, #ededed 5%, #bab1ba 100%);      filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#bab1ba',GradientType=0);      border:1px solid #d6bcd6;      -webkit-border-top-left-radius:15px;      -moz-border-radius-topleft:15px;      border-top-left-radius:15px;      -webkit-border-top-right-radius:15px;      -moz-border-radius-topright:15px;      border-top-right-radius:15px;      -webkit-border-bottom-left-radius:15px;      -moz-border-radius-bottomleft:15px;      border-bottom-left-radius:15px;      -webkit-border-bottom-right-radius:15px;      -moz-border-radius-bottomright:15px;      border-bottom-right-radius:15px;      -moz-box-shadow:3px 4px 0px 0px #899599;      -webkit-box-shadow:3px 4px 0px 0px #899599;      box-shadow:3px 4px 0px 0px #899599;      text-align:center;      display:inline-block;      text-decoration:none;  }  .className:hover {            background:-webkit-gradient(linear, left top, left bottom, color-start(0.05, #bab1ba), color-stop(1, #ededed));      background:-moz-linear-gradient(top, #bab1ba 5%, #ededed 100%);      background:-o-linear-gradient(top, #bab1ba 5%, #ededed 100%);      background:-ms-linear-gradient(top, #bab1ba 5%, #ededed 100%);      background:linear-gradient(to bottom, #bab1ba 5%, #ededed 100%);      background:-webkit-linear-gradient(top, #bab1ba 5%, #ededed 100%);      filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#bab1ba', endColorstr='#ededed',GradientType=0);  }  

 

 

5、绿色圆弧

.className{
line-height:50px;
height:50px;
width:110px;
color:#ffffff;
background-color:#44c767;
font-size:17px;
font-weight:normal;
font-family:Arial;
border:1px solid #18ab29;
-webkit-border-top-left-radius:28px;
-moz-border-radius-topleft:28px;
border-top-left-radius:28px;
-webkit-border-top-right-radius:28px;
-moz-border-radius-topright:28px;
border-top-right-radius:28px;
-webkit-border-bottom-left-radius:28px;
-moz-border-radius-bottomleft:28px;
border-bottom-left-radius:28px;
-webkit-border-bottom-right-radius:28px;
-moz-border-radius-bottomright:28px;
border-bottom-right-radius:28px;
-moz-box-shadow: inset 0px 0px 0px 0px #ffffff;
-webkit-box-shadow: inset 0px 0px 0px 0px #ffffff;
box-shadow: inset 0px 0px 0px 0px #ffffff;
text-align:center;
display:inline-block;
text-decoration:none;
}
.className:hover {
background-color:#5cbf2a;
}

     

 

 更多好看的按钮css 请访问 http://buttoncssgenerator.com/

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Are the HTML tags and elements the same thing?Are the HTML tags and elements the same thing?Apr 28, 2025 pm 05:44 PM

The article explains that HTML tags are syntax markers used to define elements, while elements are complete units including tags and content. They work together to structure webpages.Character count: 159

What is the significance of <head> and <body> tag in HTML?What is the significance of <head> and <body> tag in HTML?Apr 28, 2025 pm 05:43 PM

The article discusses the roles of <head> and <body> tags in HTML, their impact on user experience, and SEO implications. Proper structuring enhances website functionality and search engine optimization.

What is the difference between <strong>, <b> tags and <em>, <i> tags?What is the difference between <strong>, <b> tags and <em>, <i> tags?Apr 28, 2025 pm 05:42 PM

The article discusses the differences between HTML tags , , , and , focusing on their semantic vs. presentational uses and their impact on SEO and accessibility.

Please explain how to indicate the character set being used by a document in HTML?Please explain how to indicate the character set being used by a document in HTML?Apr 28, 2025 pm 05:41 PM

Article discusses specifying character encoding in HTML, focusing on UTF-8. Main issue: ensuring correct display of text, preventing garbled characters, and enhancing SEO and accessibility.

What are the various formatting tags in HTML?What are the various formatting tags in HTML?Apr 28, 2025 pm 05:39 PM

The article discusses various HTML formatting tags used for structuring and styling web content, emphasizing their effects on text appearance and the importance of semantic tags for accessibility and SEO.

What is the difference between the 'id' attribute and the 'class' attribute of HTML elements?What is the difference between the 'id' attribute and the 'class' attribute of HTML elements?Apr 28, 2025 pm 05:39 PM

The article discusses the differences between HTML's 'id' and 'class' attributes, focusing on their uniqueness, purpose, CSS syntax, and specificity. It explains how their use impacts webpage styling and functionality, and provides best practices for

What is the 'class' attribute in HTML?What is the 'class' attribute in HTML?Apr 28, 2025 pm 05:37 PM

The article explains the HTML 'class' attribute's role in grouping elements for styling and JavaScript manipulation, contrasting it with the unique 'id' attribute.

What are different types of lists in HTML?What are different types of lists in HTML?Apr 28, 2025 pm 05:36 PM

Article discusses HTML list types: ordered (<ol>), unordered (<ul>), and description (<dl>). Focuses on creating and styling lists to enhance website design.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.