js实现移动端悬浮搜索按钮点击弹出搜索框效果代码
代码语言:html
所属分类:搜索
代码描述:js实现移动端悬浮搜索按钮点击弹出搜索框效果代码
代码标签: 端 悬浮 搜索 按钮 点击 弹出 搜索 框 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
/* General Demo Style */
@import url(https://fonts.googleapis.com/css?family=Lato:300,400,700);
*, *:after, *:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body, html {
font-size: 100%;
padding: 0;
margin: 0;
}
/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before, .clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
body {
font-family: 'Lato', Calibri, Arial, sans-serif;
color: #eaeaea;
background: #2c3e50;
}
a {
color: #b4c7da;
text-decoration: none;
}
a:hover,
a:active {
color: #fff;
}
/* Header Style */
.main,
.container > header {
margin: 0 auto;
padding: 2em;
}
.container > header {
text-align: center;
background: rgba(0,0,0,0.01);
}
.container > header h1 {
font-size: 2.625em;
line-height: 1.3;
margin: 0;
font-weight: 300;
}
.container > header span {
display: block;
font-size: 60%;
color: #e67e22;
padding: 0 0 0.6em 0.1em;
}
/* Main Content */
.main {
max-width: 69em;
}
.column {
float: left;
width: 50%;
padding: 0 2em;
min-height: 300px;
position: relative;
}
.column:nth-child(2) {
box-shadow: -1px 0 0 rgba(0,0,0,0.1);
}
.column p {
font-weight: 300;
font-size: 2em;
padding: 0;
margin: 0;
text-align: right;
line-height: 1.5;
}
.column a {
border: 3px solid #b4c7da;
padding: 0 15px;
display: inline-block;
margin: 20px 0;
}
.column a:hover {
border-color: #fff;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0