当前位置:网站首页>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>边栏推荐
- Redis源码学习(29),压缩列表学习,ziplist.c(二)
- LogBack
- jeecg 重启报40001
- Ape anthropology topic 20 (the topic will be updated from time to time)
- Nacos - 服务发现
- Programming with C language: calculate with formula: e ≈ 1+1/1+ 1/2! …+ 1/n!, Accuracy is 10-6
- Introduction to 18mnmo4-5 steel plate executive standard and delivery status of 18mnmo4-5 steel plate, European standard steel plate 18mnmo4-5 fixed rolling
- In depth learning training sample amplification and tag name modification
- Centos7 shell script one click installation of JDK, Mongo, Kafka, FTP, PostgreSQL, PostGIS, pgrouting
- Redis -- lattice connects to redis cluster
猜你喜欢

Principles of Microcomputer - internal and external structure of microprocessor

1. Connection between Jetson and camera

It is designed with high bandwidth, which is almost processed into an open circuit?

Installing Oracle EE

Nacos - gestion de la configuration

Nacos - 配置管理

个人装修笔记

Public network cluster intercom +gps visual tracking | help the logistics industry with intelligent management and scheduling

Bimianhongfu queren()

小鸟识别APP
随机推荐
LogBack
Win7 pyinstaller reports an error DLL load failed while importing after packaging exe_ Socket: parameter error
Shell脚本-特殊变量:Shell $#、$*、[email protected]、$?、$$
Dynamic proxy
Shell script - definition, assignment and deletion of variables
序列化、监听、自定义注解
19Mn6 German standard pressure vessel steel plate 19Mn6 Wugang fixed binding 19Mn6 chemical composition
Matlab tips (16) consistency verification of matrix eigenvector eigenvalue solution -- analytic hierarchy process
Installing Oracle EE
Memory size end
【MFC开发(16)】树形控件Tree Control
1.jetson与摄像头的对接
Pain points and solutions of fixed assets management of group companies
The fixed assets management system enables enterprises to dynamically master assets
Shell script - positional parameters (command line parameters)
In depth learning training sample amplification and tag name modification
C语言指针的进阶(上篇)
How to solve the problem of fixed assets management and inventory?
AVL树的理解和实现
"Analysis of 43 cases of MATLAB neural network": Chapter 30 design of combined classifier based on random forest idea - breast cancer diagnosis