当前位置:网站首页>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>边栏推荐
- 【MFC开发(17)】高级列表控件List Control
- 如何一站式高效管理固定资产?
- Centos7 shell script one click installation of JDK, Mongo, Kafka, FTP, PostgreSQL, PostGIS, pgrouting
- How to manage fixed assets efficiently in one stop?
- 基础:2.图像的本质
- LogBack
- 个人装修笔记
- Full mark standard for sports items in the high school entrance examination (Shenzhen, Anhui and Hubei)
- FreeRTOS learning easy notes
- 如何做好固定资产管理?易点易动提供智能化方案
猜你喜欢

Matlab tips (23) matrix analysis -- simulated annealing

jeecg 重启报40001

Insert mathematical formula in MD document and mathematical formula in typora

What is the material of 16mo3 steel plate? What is the difference between 16mo3 and Q345R?

Pain points and solutions of fixed assets management of group companies
![[MFC development (16)] tree control](/img/b9/1de4330c0bd186cfe062b02478c058.png)
[MFC development (16)] tree control

19Mn6 German standard pressure vessel steel plate 19Mn6 Wugang fixed binding 19Mn6 chemical composition

Bird recognition app

Advanced C language pointer (Part 2)

What are the differences between the architecture a, R and m of arm V7, and in which fields are they applied?
随机推荐
Shell script echo command escape character
Nacos - 配置管理
Jetson nano installs tensorflow GPU and problem solving
Key points of NFT supervision and overseas policies
Flink面试题
How to solve the problem of fixed assets management and inventory?
Matlab tips (16) consistency verification of matrix eigenvector eigenvalue solution -- analytic hierarchy process
日常办公耗材管理解决方案
Insert mathematical formula in MD document and mathematical formula in typora
Installing Oracle EE
Shell脚本-case in 和正则表达式
Nacos - gestion de la configuration
Shell脚本-case in语句
Is it safe to dig up money and make new shares
足球篮球体育比赛比分直播平台源码/app开发建设项目
It is designed with high bandwidth, which is almost processed into an open circuit?
嵌入式工程师面试-常问问题集
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
Shell script -read command: read data entered from the keyboard