Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何使用图形按钮_Html_Css - Fatal编程技术网

Html 如何使用图形按钮

Html 如何使用图形按钮,html,css,Html,Css,我不熟悉造型。当我搜索样式按钮时,我开始了解这个“图形按钮”。如何在页面中包含图形按钮 <button type="button"> <img src="graphic.png" alt="alternative text"> </button> 只需使用css和背景等,例如,向您展示您能做多少 .btn, input[type="button"] { /*border-style: solid; border-width: 1px

我不熟悉造型。当我搜索样式按钮时,我开始了解这个“图形按钮”。如何在页面中包含图形按钮


<button type="button">
    <img src="graphic.png" alt="alternative text">
</button>

只需使用css和背景等,例如,向您展示您能做多少

.btn, input[type="button"] {
    /*border-style: solid;
    border-width: 1px;*/
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    line-height: 1;
    margin: 0 0 1.25rem;
    position: relative;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    padding-top: 0.75rem;
    padding-right: 1.5rem;
    padding-bottom: 0.8125rem;
    padding-left: 1.5rem;
    font-size: 1rem !important;
    background: none;
    /*border-color: #2bacd1;*/
    color: white;
    border-radius: 0px 0px 8px 0px;
    /*-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;*/
    /*-webkit-transition: background-color 100ms ease-out;
    -moz-transition: background-color 100ms ease-out;
    transition: background-color 100ms ease-out;*/
    -webkit-appearance: none;
    min-width: 95px;
}

只需使用css并浏览背景等,例如,向您展示您能做多少

.btn, input[type="button"] {
    /*border-style: solid;
    border-width: 1px;*/
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    line-height: 1;
    margin: 0 0 1.25rem;
    position: relative;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    padding-top: 0.75rem;
    padding-right: 1.5rem;
    padding-bottom: 0.8125rem;
    padding-left: 1.5rem;
    font-size: 1rem !important;
    background: none;
    /*border-color: #2bacd1;*/
    color: white;
    border-radius: 0px 0px 8px 0px;
    /*-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;*/
    /*-webkit-transition: background-color 100ms ease-out;
    -moz-transition: background-color 100ms ease-out;
    transition: background-color 100ms ease-out;*/
    -webkit-appearance: none;
    min-width: 95px;
}