当前位置:网站首页>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>
边栏推荐
- pcl_ Viewer command
- Meituan machine test in 2022
- Shell脚本-case in语句
- How to manage fixed assets efficiently in one stop?
- 序列化、监听、自定义注解
- Serialization, listening, custom annotation
- 日常办公耗材管理解决方案
- Ranking list of domestic databases in February, 2022: oceanbase regained the "three consecutive increases", and gaussdb is expected to achieve the largest increase this month
- 基础:3.opencv快速入门图像和视频
- Centos7 shell script one click installation of JDK, Mongo, Kafka, FTP, PostgreSQL, PostGIS, pgrouting
猜你喜欢
[interview brush 101] linked list
【MFC开发(17)】高级列表控件List Control
Phishing identification app
It is designed with high bandwidth, which is almost processed into an open circuit?
Mysql 优化
Redis——Lettuce连接redis集群
How to solve the problem of fixed assets management and inventory?
19Mn6 German standard pressure vessel steel plate 19Mn6 Wugang fixed binding 19Mn6 chemical composition
猿人学第20题(题目会不定时更新)
钓鱼识别app
随机推荐
Shell脚本-while循环详解
AVL树的理解和实现
Foundation: 2 The essence of image
Personal decoration notes
TV size and viewing distance
C语言学生信息管理系统
Why is the Ltd independent station a Web3.0 website!
Principle and application of single chip microcomputer timer, serial communication and interrupt system
1. Connection between Jetson and camera
基础:3.opencv快速入门图像和视频
Shell script - string
"Analysis of 43 cases of MATLAB neural network": Chapter 30 design of combined classifier based on random forest idea - breast cancer diagnosis
嵌入式工程师常见面试题2-MCU_STM32
[interview brush 101] linked list
足球篮球体育比赛比分直播平台源码/app开发建设项目
毕业季,我想对你说
Public network cluster intercom +gps visual tracking | help the logistics industry with intelligent management and scheduling
Dynamic proxy
Understand shallow replication and deep replication through code examples
Shell脚本-read命令:读取从键盘输入的数据