感觉还是有些生疏,很多都不清楚。<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8" >
<title>无标题文档</title>
<style>
<!--
button,a,input[type='button']{outline:none;border:none;}//不加外面会有一条线
input.text1 {
padding: 5px 35px;
cursor:pointer;
color:#fefee9;
border:1px solid #da7c0c;
border-radius:6px;
box-shadow: 1px 1px 3px #888888;
background-color:#f78d1d;
}
.text1:hover {
background: #f47c20;
}
a{
color:#ffffff;
padding: 6px 30px;
background-color: #5bdae3;
border-radius:7px;
text-decoration: none;
font:normal bold 12px/20px 微软雅黑;
}
a:hover{
cursor:pointer;
background-color:#4dd2db;
}
a:active{
padding: 5px 29px;
margin: 0 2px 0px 0px;
cursor:pointer;
background-color:#4dd2db;
}
button{
margin: 0px;
}
.text3{
color:#ffffff;
padding: 6px 30px;
background-color: #2bef7e;
text-decoration: none;
font:normal bold 12px/20px 微软雅黑;
}
.text3:hover{
cursor:pointer;
background-color:#1fcf6d;
}
.text3:active{
padding: 5px 29px;
margin: 1px;
cursor:pointer;
background-color:#23b962;
}
-->
</style>
</head>
<body>
<input type="button" class="text1" value="text1" οnclick="#"/>
<a class="text2" href="#">text2</a>
<br><br><be>
<button type="button" value="text3" class="text3">text3</button>
</body>
</html>
DIV+CSS练习3
最新推荐文章于 2023-02-05 20:38:03 发布
用几种方式实现按钮的效果
GUESS:将以上的效果在IE7实现。