当前位置:网站首页>Imitation of Baidu search results top navigation bar effect
Imitation of Baidu search results top navigation bar effect
2022-07-01 09:00:00 【Intimes】
HTML Achieve the top navigation bar effect of imitation Baidu search results , The effect is as follows :
Let's go straight to the code :
<html>
<head>
<style>
*{margin:0;padding:0;}
#wrap{
width:100%;
height:80px;
background-color:white;
border: solid 1px #eee;
position:sticky;
top:0px;
z-index:1000;
-moz-box-shadow: 0 0 10px #ccc;
-webkit-box-shadow: 0 0 10px #ccc;
padding-shadow: #f7f7f7 5px 5px 30px 5px ;
blur:1;
//opacity:0.8;filter:alpha(opacity=80);
}
form{
width:500px;
height:40px;
margin: 0 auto;
margin-top:20px;
}
#text{
width:396px;
height:40px;
display:block;
float:left;
}
#sub{
width:100px;
height:40px;
display:block;
float:left;
background-color:#3385FF;
border: solid 1px #3385FF;
color:white;
cursor:pointer;
}
.box{
width:80%;
height:250px;
line-height:250px;
margin:0 auto;
color:white;
fontsize:100px;
text-align:center;
}
#a1{background-color:white;}
#a2{background-color:#cff09e;}
#a3{background-color:#cff09e;}
#a4{background-color:#cff09e;}
#a5{background-color:#cff09e;}
#a6{background-color:#cff09e;}
</style>
</head>
<body>
<div id="wrap">
<form>
<input type="text" id="text" value=""/>
<input type="submit" id="sub" value=" Search for "/>
</form>
</div>
<div class="box" id="a1">1</div>
<div class="box" id="a2">2</div>
<div class="box" id="a3">3</div>
<div class="box" id="a4">4</div>
<div class="box" id="a5">5</div>
<div class="box" id="a6">6</div>
</body>
</html>
边栏推荐
- Jetson nano installs tensorflow GPU and problem solving
- Flink面试题
- Matlab tips (16) consistency verification of matrix eigenvector eigenvalue solution -- analytic hierarchy process
- Understand shallow replication and deep replication through code examples
- Insert mathematical formula in MD document and mathematical formula in typora
- Pain points and solutions of fixed assets management of group companies
- 19Mn6 German standard pressure vessel steel plate 19Mn6 Wugang fixed binding 19Mn6 chemical composition
- Shell脚本-if else语句
- 动态代理
- 大型工厂设备管理痛点和解决方案
猜你喜欢
Nacos - 服务发现
Nacos - service discovery
3. Detailed explanation of Modbus communication protocol
Jetson Nano 安装TensorFlow GPU及问题解决
如何一站式高效管理固定资产?
Ape anthropology topic 20 (the topic will be updated from time to time)
How to manage fixed assets well? Easy to point and move to provide intelligent solutions
Why is the Ltd independent station a Web3.0 website!
Matlab tips (16) consistency verification of matrix eigenvector eigenvalue solution -- analytic hierarchy process
Phishing identification app
随机推荐
Advanced level of C language pointer (Part 1)
Shell脚本-特殊变量:Shell $#、$*、[email protected]、$?、$$
Shell script - definition, assignment and deletion of variables
Installing Oracle EE
Shell脚本-case in 和正则表达式
1. Connection between Jetson and camera
MySQL optimization
Promise异步编程
[interview brush 101] linked list
Principles of Microcomputer - internal and external structure of microprocessor
又到年中,固定资产管理该何去何从?
FreeRTOS学习简易笔记
The fixed assets management system enables enterprises to dynamically master assets
Bimianhongfu queren()
用C语言编程:用公式计算:e≈1+1/1!+1/2! …+1/n!,精度为10-6
Pain points and solutions of fixed assets management of group companies
Shell脚本-if else语句
Dynamic proxy
Set the type of the input tag to number, and remove the up and down arrows
Shell脚本-位置参数(命令行参数)