zoukankan      html  css  js  c++  java
  • Html+css实现带图标的控件

    1. </pre><pre name="code" class="html"><!DOCTYPE html>
      <html lang="zh-CN">
      <head>
      <title>按钮写法</title>
      <meta charset="UTF-8">
      <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
      <link rel="stylesheet" href="css/style.css">
      <style type="text/css">
      a:hover{text-decoration: none;}
      .btn{
      display: inline-block;
      margin-top: 10px;
      padding: 10px 24px;
      border-radius: 4px;
      #63b7ff;
      color: #fff;
      cursor: pointer;
      }
      .btn:hover{
      #99c6ff;
      }
      .inbtn{
      border: none;
      }
      .bubtn{
      border: none;
      }
      .btn{
      font-style: normal;
      }
      .bgbtn span{
      margin-left: 10px;
      padding-left: 20px;
      background: url(images/edit.png) left center no-repeat;
      }
      .bgbtn02 img{
      margin-bottom: -3px;
      margin-right: 10px;
      }
      </style>
      </head>
      <body>
      <!--<a>标签按钮-->
      <a href="" class="btn">a标签按钮</a>
      <!--<input>标签按钮-->
      <input class="inbtn btn" type="button" value="input标签按钮"/>
      <!--<button>标签按钮-->
      <button class="bubtn btn">button标签按钮</button>
      <!--任意标签按钮-->
      <i class="ibtn btn">i标签按钮</i>
      <!--带背景图标按钮-->
      <a href="" class="bgbtn btn">
      <span>带图标按钮</span>
      </a>
      <a href="" class="bgbtn02 btn">
      <img src="images/edit.png"/>带图标按钮
      </a>
      </body>
      </html>

    原文链接:http://www.jb51.net/web/433202.html

    让技术改变未来,让技术影响人们生活方式
  • 相关阅读:
    BFS(广搜训练题目)
    练习赛1(补题)
    练习赛1(AC题)
    codeup 1743: 算法3-4:表达式求值
    数学相关(更新ing)
    c语言常用函数(更新ing)
    大牛的博客(学习不止,更新不止)
    51nod 1005 大数加法
    js1-----预览js内容
    css10---转载---定位,浮动
  • 原文地址:https://www.cnblogs.com/huangtaiyu/p/5798950.html
Copyright © 2011-2022 走看看