自己做的一个button

<!DOCTYPE html>
<html>
<head>
<style> 


div
{
width:100px;
height:75px;
background-color:yellow;
border:1px solid black;
}
div#div2
{
transform:rotateY(130deg);
-webkit-transform:rotateY(130deg); /* Safari and Chrome */
-moz-transform:rotateY(130deg); /* Firefox */
}


.mm{
//width:300px;
height:25px;
//line-height: 20px;
border:0;
//border-right-style:none;
//border-bottom-style:none;
//一行不允许两次使用斜杠注释,下面是左下角半圆
//border-bottom-left-radius:2em;
border-radius:8px;         
color:#677786;
background-color:#DDE4D8;  //双杠注释
margin:-15px;
}


/*单击后的颜色,需要放在前面*/
.mm:focus{
background-color:#B9C0B4;
color:#424F5A;
  outline: none;


}


.mm:hover{
background-color:#B9C0B4;
color:#424F5A;


}
/*单击时的状态*/
.mm:active{ 
background-color:#949891;
color:#131517;


}




</style>
</head>
<body>


<div>你好。这是一个 div 元素。</div>


<div id="div2">你好。这是一个 div 元素。</div>


<p><b>注释:</b> Internet Explorer 和 Opera 不支持 rotateX 方法。</p>


<center>
<button id="btn" class="mm" >按钮</button>
<button id="btn1" class="mm">按钮</button>


<!-可以直接写js语言onClick=""里面->
</center>
</body>

</html>


效果:

原始移到单击离开

重点是看button,一点学习,分享一下!!


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值