要模仿的按钮:(来自优快云:http://download.youkuaiyun.com/)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
a {
text-decoration: none;
}
.search_btn {
display: inline-block;
padding: 0 40px;
text-align: center;
color: #FFF;
background-color: #e82a2a;
height: 42px;
margin-right: 10px;
border: none;
font-size: 14px;
line-height: 42px;
border-radius: 5px;
vertical-align: middle;
}
</style>
</head>
<body>
<a href="http://www.baidu.com" class="search_btn">搜索</a>
</body>
</html>效果:
本文介绍如何使用HTML和CSS来复刻一个类似于优快云下载页面中的搜索按钮样式,包括具体的代码实现细节。
565

被折叠的 条评论
为什么被折叠?



