您好,欢迎来到源码搜藏!分享精神,快乐你我!提示:担心找不到本站?在百度搜索“源码搜藏”,网址永远不丢失!
  • 首 页
  • 在线工具
  • 当前位置:首页 > 网页特效 > 导航菜单 >

    纯css围成圆形的圆环菜单,带文字提示的导航菜单

    时间:2013-12-19 08:38 来源:互联网 作者:源码搜藏 浏览:收藏 挑错 推荐 打印
    运行代码保存代码复制代码 提示:您可以先修改部分代码再运行,保存代码功能在Firefox下无效。
    • 用纯CSS实现的圆形菜单,围成圆环形,有鼠标悬停效果,鼠标放在图标上,会显示所对应的栏目名称和简短的文字说明,也算是文字提示吧,是用的span标签来实现文字提示的定位,我觉得研究本菜单,对CSS布局的理解是会有帮助的。
    • <!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>
      <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
      <title>纯css圆环菜单,带文字提示的导航菜单代码[www.codesocang.com]</title>
      <style type="text/css">
      #circularMenu {padding:0; margin:0 auto; list-style:none; position:relative; width:300px; height:300px; background:#fff url(/jscss/demoimg/201312/background.gif) no-repeat;}
      #circularMenu li {display:block; width:60px; height:60px; position:absolute;}
      #circularMenu li.home {left:120px; top:4px; background:url(http://www.codefans.net/jscss/demoimg/201312/home.gif) no-repeat center center;}
      #circularMenu li.chat {left:200px; top:40px; background:url(http://www.codefans.net/jscss/demoimg/201312/chat.gif) no-repeat center center;}
      #circularMenu li.upload {left:35px; top:40px; background:url(http://www.codefans.net/jscss/demoimg/201312/photo.gif) no-repeat center center;}
      #circularMenu li.email {left:230px; top:115px; background:url(http://www.codefans.net/jscss/demoimg/201312/email.gif) no-repeat center center;}
      #circularMenu li.address {left:5px; top:115px; background:url(http://www.codefans.net/jscss/demoimg/201312/address.gif) no-repeat center center;}
      #circularMenu li.shop {left:200px; top:190px; background:url(http://www.codefans.net/jscss/demoimg/201312/shop.gif) no-repeat center center;}
      #circularMenu li.search {left:35px; top:190px; background:url(http://www.codefans.net/jscss/demoimg/201312/search.gif) no-repeat center center;}
      #circularMenu li.delivery {left:120px; top:225px; background:url(http://www.codefans.net/jscss/demoimg/201312/delivery.gif) no-repeat center center;}
      #circularMenu li a b {display:none;}
      #circularMenu li a {display:block; width:60px; height:60px; text-align:center;}
      #circularMenu li a:hover {background:url(http://www.codefans.net/jscss/demoimg/201312/circle.gif); text-decoration:none; font-family:georgia, serif;}
      #circularMenu li a:hover b {position:absolute; display:block; width:100px; height:100px; font-size:16px; color:#63352c; background:#fff;}
      #circularMenu li a:hover b span {display:block; font-size:12px; color:#888; font-weight:normal; margin-top:15px;}
      #circularMenu li.home a:hover b {left:-22px; top:100px;}
      #circularMenu li.chat a:hover b  {left:-102px; top:64px;}
      #circularMenu li.upload a:hover b  {left:63px; top:64px;}
      #circularMenu li.email a:hover b  {left:-132px; top:-11px;}
      #circularMenu li.address a:hover b  {left:93px; top:-11px;}
      #circularMenu li.shop a:hover b  {left:-102px; top:-87px;}
      #circularMenu li.search a:hover b  {left:63px; top:-87px;}
      #circularMenu li.delivery a:hover b  {left:-22px; top:-121px;}
      </style>
      </head>
      <body>
      <ul id="circularMenu">
      <li class="home"><a href="/"><b>主页<br /><span>网页特效</span></b></a></li>
      <li class="chat"><a href="#"><b>博文<br /><span>分享原创博客</span></b></a></li>
      <li class="email"><a href="#"><b>联系<br /><span>我的联系方式</span></b></a></li>
      <li class="shop"><a href="#l"><b>应用<br /><span>我喜欢的手机应用</span></b></a></li>
      <li class="delivery"><a href="#"><b>音乐<br /><span>我喜欢的音乐</span></b></a></li>
      <li class="search"><a href="#"><b>搜索<br /><span>百度一下</span></b></a></li>
      <li class="address"><a href="#"><b>地图<br /><span>在地图上找到我</span></b></a></li>
      <li class="upload"><a href="#"><b>更新<br /><span>最近更新的精彩内容</span></b></a></li>
      </ul>
      </body>
      </html>

    纯css围成圆形的圆环菜单,带文字提示的导航菜单由源码搜藏网整理,转载请注明出处http://www.codesocang.com/texiao/daohang/6511.html
    标签:网站源码