当前位置:Gxlcms > html代码 > 看下这个按钮是怎么做的呢?_html/css_WEB-ITnose

看下这个按钮是怎么做的呢?_html/css_WEB-ITnose

时间:2021-07-01 10:21:17 帮助过:13人阅读

这是一个普通的输入框提交按钮,鼠标移动上去颜色就变得 更深了,是怎么实现的?换背景色还是换图片? 还有就是 圆角怎么做的呢? 有空的大神跟我说说呗~ 感觉这个按钮好漂亮啊~~


回复讨论(解决方案)

  1. <meta charset="UTF-8">
  2. <title>页面名称</title><style type="text/css">.ad {
  3. width: 70px;
  4. height: 30px;
  5. text-align: center;
  6. font-size: 16px;
  7. line-height: 30px;
  8. color: #fff;
  9. background-color: #279ef5;
  10. border-radius: 5px;
  11. cursor:default;}.ad:hover {
  12. background-color: #0a7dd3;}.ad:active {
  13. color: #ff0000;
  14. background-color: #61b8f8;}</style><div class="ad">按钮</div>

  1. <meta charset="UTF-8">
  2. <title>页面名称</title><style type="text/css">.ad {
  3. width: 70px;
  4. height: 30px;
  5. text-align: center;
  6. font-size: 16px;
  7. line-height: 30px;
  8. color: #fff;
  9. background-color: #279ef5;
  10. border-radius: 5px;
  11. cursor:default;}.ad:hover {
  12. background-color: #0a7dd3;}.ad:active {
  13. color: #ff0000;
  14. background-color: #61b8f8;}</style><div class="ad">按钮</div>




哇塞! 你也太牛了。

  1. <meta charset="UTF-8">
  2. <title>页面名称</title><style type="text/css">.ad {
  3. width: 70px;
  4. height: 30px;
  5. text-align: center;
  6. font-size: 16px;
  7. line-height: 30px;
  8. color: #fff;
  9. background-color: #279ef5;
  10. border-radius: 5px;
  11. cursor:default;}.ad:hover {
  12. background-color: #0a7dd3;}.ad:active {
  13. color: #ff0000;
  14. background-color: #61b8f8;}</style><div class="ad">按钮</div>



谢谢你!对我很有用~

人气教程排行