随笔 - 143  文章 - 0  评论 - 23  阅读 - 125万

css3 导航效果

<html>
<head>
<style type="text/css">
ul{
list-style:none;
border-left:1px solid grey;
padding:10px 0;
margin-left:auto;
margin-right:auto;
width:200px;
}

li#yuanjiao{
width:100px;
height:35px;
border:1px solid grey;
border-left:0px solid grey;
margin:6px 0px;
border-radius:0px 15px 15px 0px;
text-align:center;
line-height:35px;
-webkit-transition:width 0.5s linear,background-color 1s linear;
-moz-transition:width 0.2s linear,background-color 1s linear;
-o-transition:width 0.2s linear,background-color 1s linear;
-ms-transition: width 0.3s ease, background-color 1s ease;
transition: width 0.3s ease, background-color 1s ease;
}

li#yuanjiao:hover{
width:200px;
height:35px;
border:1px solid grey;
border-left:0px solid grey;
margin:5px 0px;
border-radius:0px 15px 15px 0px;
background-color:orange;
text-align:center;
}

</style>
</head>
<body>
<ul>
<li id="yuanjiao">W3CFuns</li>
<li id="yuanjiao">HTML5</li>
<li id="yuanjiao">CSS3</li>
<li id="yuanjiao">JavaScript</li>
<li id="yuanjiao">jQuery</li>
<li id="yuanjiao">XHTML+CSS</li>
<li id="yuanjiao">By weiyan</li>
</ul>
<script>
if(!-[1,]){
  alert("fuck");
}
</script>
</body>
</html>

posted on   cbwcwy  阅读(560)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· winform 绘制太阳,地球,月球 运作规律
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
< 2012年9月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6

点击右上角即可分享
微信分享提示