惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Troy Hunt's Blog
P
Proofpoint News Feed
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
Cyberwarzone
Cyberwarzone
T
Tor Project blog
Cisco Talos Blog
Cisco Talos Blog
S
Securelist
L
Lohrmann on Cybersecurity
Security Latest
Security Latest
T
Threatpost
H
Heimdal Security Blog
W
WeLiveSecurity
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
GRAHAM CLULEY
IT之家
IT之家
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
TaoSecurity Blog
TaoSecurity Blog
A
About on SuperTechFans
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
Google DeepMind News
Google DeepMind News
量子位
Stack Overflow Blog
Stack Overflow Blog
Know Your Adversary
Know Your Adversary
B
Blog RSS Feed
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
AI
AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
Vercel News
Vercel News
C
Cyber Attacks, Cyber Crime and Cyber Security
Latest news
Latest news
D
Darknet – Hacking Tools, Hacker News & Cyber Security
大猫的无限游戏
大猫的无限游戏
Forbes - Security
Forbes - Security

博客园 - 流浪浪

使用递归的方法生产TreeView SQL截取字符串 SQL Server中各个系统表的作用 editor.js 缺少对象的解决方法(ewebeditor 使用) asp.net DataList中hyperlink传递参数及打开新页面全解 vs2005 c#鼠标悬停高亮显示在gridview中 li:hover ul,li.over ul{ display: block;}这句被ie6.0解释不了 23种设计模式的通俗理解 myeclipse9.0破解方法 C#弹出选择对话框的程序 sql语句中调用将汉字转换为拼音函数 sql将汉字首字转化为拼音 “IE7中Frameset页面显示不全”问题的原因与解决方案 (转) sql语句获取本周、本月数据 解决gridview导出到excel中汉字出现乱码的问题 - 流浪浪 - 博客园 (转)IT人士群聚喝酒 Better Man 倒春寒 恨铁不成钢啊!
CSS + JavaScript 利用display:none/block 构造弹出菜单
流浪浪 · 2011-11-30 · via 博客园 - 流浪浪

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<style type="text/css">
*{margin:0px; padding:0px; border=0; list-style:none; font-family:verdana;}

#nav{font-size:10pt}

#nav a{text-decoration:none}
#nav a:link{color:#999}
#nav a:visited{color:#999}
#nav a:hover{color:black}
#nav a:active{color:#999}

#nav li{width:120px; padding:4px; border:solid 1px; margin:3px; text-align:center; position:relative} /* 整个一级菜单占的长度120+4+1+3=128px */

#nav li ul{display:none; position:absolute; left:129px; top:-4px; background:#fff} /*padding:4px,利用display:none隐藏菜单,background:#fff用于填充空隙,否则IE中有问题*/

/*important for ff */
#nav li ul li a{display:inline-block; background:#eee; border:solid 1px; width: 120px} /*用display将a转化为块元素,为右弹效果做准备*/
#nav li ul li a{display:inline-block}
/*设置带链接子菜单的外观*/
#nav li ul li a:link{color:black}
#nav li ul li a:visited{color:black}
#nav li ul li a:hover{position:relative; left:8px} /*右弹的效果*/
#nav li ul li a:active{color:black}

#nav li:hover ul, #nav li.over ul{display:block} /*显示被隐藏的菜单*/

</style>
<script type="text/javascript">
var a = function()
{
var nav = document.getElementById('nav');
var lis = nav.childNodes;
for(var i = 0;i<lis.length;i++)
{
if(lis[i].nodeName=='LI')
{
var childLi = lis[i];
childLi.onmouseover = function(){this.className='over';}
childLi.onmouseout = function(){this.className='';}
}
}
}
window.onload = a;
</script>
</head>
<body>
<ul id="nav">
<li><a href="#1">产品介绍</a>
<ul>
<li><a href="#1">Link</a></li>
</ul>
</li>
<li>产品介绍
<ul>
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
</ul>
</li>
<li>产品介绍
<ul>
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
</ul>
</li>
<li>产品介绍
<ul>
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
</ul>
</li>
<li>产品介绍
<ul>
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
<li><a href="#1">Link</a></li>
</ul>
</li>
</ul>
</body>
</html>