百度导航切换
来源:互联网 发布:电脑p图软件有什么软件 编辑:程序博客网 时间:2024/06/12 20:08
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
#h{
width: 100px;
background: yellowgreen;
text-align: center;
margin: auto;
}
#box{
width: 100px;
height: 100px;
background: pink;
display: none;
}
#box ol {
padding: 0;
margin: 0;
list-style: none;
font-size: 14px;
padding-top: 10px;
}
a{
text-decoration: none;
}
#box ol li{
text-align: center;
margin-top: 0px;
width: 100%;
height: 26px;
text-align: center;
line-height: 26px;
}
li:hover{
background: deepskyblue;
}
</style>
</head>
<body>
<div>
<div id="h">设置
<div id="box">
<ol>
<li><a href="" >搜索设置</a></li>
<li><a href="" >高级设置</a></li>
<li><a href="" >搜索历史</a></li>
</ol>
</div>
</div>
</div>
</body>
<script>
var oBox = document.getElementById('box');
var H = document.getElementById('h');
H.onmouseover = function(){
oBox.style.display = 'block';
}
H.onmouseout = function(){
oBox.style.display = 'none';
}
</script>
</html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
#h{
width: 100px;
background: yellowgreen;
text-align: center;
margin: auto;
}
#box{
width: 100px;
height: 100px;
background: pink;
display: none;
}
#box ol {
padding: 0;
margin: 0;
list-style: none;
font-size: 14px;
padding-top: 10px;
}
a{
text-decoration: none;
}
#box ol li{
text-align: center;
margin-top: 0px;
width: 100%;
height: 26px;
text-align: center;
line-height: 26px;
}
li:hover{
background: deepskyblue;
}
</style>
</head>
<body>
<div>
<div id="h">设置
<div id="box">
<ol>
<li><a href="" >搜索设置</a></li>
<li><a href="" >高级设置</a></li>
<li><a href="" >搜索历史</a></li>
</ol>
</div>
</div>
</div>
</body>
<script>
var oBox = document.getElementById('box');
var H = document.getElementById('h');
H.onmouseover = function(){
oBox.style.display = 'block';
}
H.onmouseout = function(){
oBox.style.display = 'none';
}
</script>
</html>
0 0
- 百度导航切换
- 百度导航
- 百度导航
- css切换(导航)
- 导航CSS切换
- js切换导航
- 导航视图切换
- 导航 滚动切换
- jquery导航切换
- 中英文切换导航制作
- 中英文切换导航
- 导航切换JS
- 导航中的中英文切换
- 导航控制器切换效果
- 百度地图 API 导航
- 百度lbs导航
- 百度导航,定位冲突
- 百度地图导航
- 【周赛】第一周周赛——欢迎16级的新同学题解(题目出自codeforces 318A,546A,431C,665E,HDU 4104)
- (Java)LeetCode-58. Length of Last Word
- nyist 1272 表达式求值 (河南省第九届省赛) 中缀转后缀
- atoi和stoi
- Java基础 关于强引用,软引用,弱引用,虚引用
- 百度导航切换
- (转载)如何让孩子爱上Kotlin第二章:Hello World
- gdb调试器(一)
- [温故而知新] 关于C++的引用
- Node.js的学习历程四npm的基础知识点
- 模仿3D行星
- 欢迎使用CSDN-markdown编辑器
- 自定义控件-时钟
- 关于环信EaseUI百度地图切换成高德地图时遇到的mapView.onCreate(savedInstanceState);报空指针的解决办法