首页 > 作文

CSS3实现的侧滑菜单

更新时间:2023-04-07 18:46:45 阅读: 评论:0

实现效果:

实现代码:

<!doctype html><html class="menu"><html><head><meta chart="utf-8"/><meta http-equiv="x-ua-compatible" content=="ie=edge"/><meta name="google" value="notranslate"/><title>side menu</title><link rel="stylesheet" type="text/css" href="css/律师函范本menu.css"><link rel="stylesheet" type="text/css" href="/d/file/titlepic/font-awesome.css" rel="stylesheet">   </head><body></div><nav class="main-menu">   <div>    <a class="logo" href="http://startific.com">    </a>   </div> <div class="ttings"></div><div class="scrollbar" id="style-1">      <ul>  <li>                                   <a href="http://startific.com"><i class="fa fa-home fa-lg"></i><span class="nav-text">home</span></a></li>      <li>                                 <a href="http://startific.com"><i class="fa fa-ur fa-lg"></i><span class="nav-text">login</span></a></li&给朋友的一封信gt;       <li>                                 <a href="http://startific.com"><i class="fa fa-envelope-o fa-lg"></i><span class="nav-text">contact</span></a></li>      <li><a href="http://startific.com"><i class="fa fa-heart-o fa-lg"></i>                        <span class="share"> <div class="addthis_default_style addthis_32x32_style">  <div style="position:absolute;margin-left: 56px;t走廊装修效果图op:3px;">         <a href="https://www.facebook.com/sharer/sharer.php?u=" target="_blank" class="share-popup"><img src="/d/file/titlepic/facebook-icon.png" width="30px" height="30px"></a>   <a href="https://twitter.com/share" target="_blank" class="share-popup"><img src="https://cdn1.iconfinder.com/data/icons/metro-ui-dock-icon-t--icons-by-dakirby/512/twitter_alt.png" width="30px" height="30px"></a>   <a href="https://plusone.google.com/_/+1/confirm?hl=en&url=_url_&title=_title_" target="_blank" class="share-popup"><img src="/d/file/titlepic/google-plus-icon.png" width="30px" height="30px"></a>         </div><script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script><script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4ff17589278d8b3a"></script>                                                                                                                                                               </span>                        <span class="twitter"></span>                        <span class="google"></span>                        <span class="fb-like">  <iframe src="//www.facebook.com/plugins/like.php?href=http%3a%2f%2ffacebook.com%2fstartific&amp;width&amp;layout=button&amp;action=like&amp;show_faces=fal&amp;share=fal&amp;height=35" scrolling="no" frameborder="0" style="border:n爱与责任one; overflow:hidden; height:35px;" allowtransparency="true"></iframe>                                               </span>                        <span class="nav-text">                        </span>                                            </a></li>                                </li><li class="darkerlishadow"><a href="http://startific.com"><i class="fa fa-clock-o fa-lg"></i><span class="nav-text">news</span></a></li>  <li class="darkerli"><a href="http://startific.com"><i class="fa fa-desktop fa-lg"></i><span class="nav-text">technology</span></a></li>  <li class="darkerli"><a href="http://startific.com"><i class="fa fa-plane fa-lg"></i><span class="nav-text">travel</span></a></li>  <li class="darkerli"><a href="http://startific.com"><i class="fa fa-shopping-cart"></i> <span class="nav-text">shopping</span></a></li>  <li class="darkerli"><a href="http://startific.com"><i class="fa fa-microphone fa-lg"></i><span class="nav-text">film & music</span></a></li><li class="darkerli"><a href="http://startific.com"><i class="fa fa-flask fa-lg"></i><span class="nav-text">web tools</span></a></li>  <li class="darkerli"><a href="http://startific.com"><i class="fa fa-picture-o fa-lg"></i><span class="nav-text">art & design</span></a></li><li class="darkerli"><a href="http://startific.com"><i class="fa fa-align-left fa-lg"></i><span class="nav-text">magazines</span></a></li>  <li class="darkerli"><a href="http://startific.com"><i class="fa fa-gamepad fa-lg"></i><span class="nav-text">games</span></a></li>  <li class="darkerli"><a href="http://startific.com"><i class="fa fa-glass fa-lg"></i><span class="nav-text">life & style</span></a></li>  <li class="darkerlishadowdown"><a href="http://startific.com"><i class="fa fa-rocket fa-lg"></i><span class="nav-text">fun</span></a></li>   </ul>  <li>                                   <a href="http://startific.com"><i class="fa fa-question-circle fa-lg"></i><span class="nav-text">help</span></a></li>         <ul class="logout"><li>                   <a href="http://startific.com">                         <i class="fa fa-lightbulb-o fa-lg"></i>                        <span class="nav-text">                            blog                         </span>                                            </a></li>  </ul>        </nav>              </body></html>

css3

body{  margin:0px;  padding:0px;font-family: "open sans", arial;background:url('https://static.tumblr.com/94eb957a00fd03c0c2f7d26decd71578/u1rhacw/osamyyh1q/tumblr_static_tumblr_static_gaussian_blur_gradient_desktop_1680x943_wallpaper-393751.jpg');color:#fff;font-weight:300;}@import url(//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css);}@import url(https://fonts.googleapis.com/css?family=titillium+web:300);.logo{  }.ttings {    height:73px;   float:left;  background:url( https://s3.postimg.org/bqfooag4z/startific.jpg);  background-repeat:no-repeat;  width:250px;  margin:0px; text-align: center;font-size:20px;font-family: 'strait', sans-rif;}/* scrolbar  */.scrollbar{height: 90%;width: 100%;overflow-y: hidden;overflow-x: hidden;}.scrollbar:hover{height: 90%;width: 100%;overflow-y: scroll;overflow-x: hidden;}/* scrollbar style */ #style-1::-webkit-scrollbar-track{border-radius: 2px;}#style-1::-webkit-scrollbar{width: 5px;background-color: #f7f7f7;}#style-1::-webkit-scrollbar-thumb{border-radius: 10px;-webkit-box-shadow: int 0 0 6px rgba(0,0,0,.3);background-color: #bfbfbf;}/* scrollbar end */ .fa-lg {font-size: 1em;  }.fa {position: relative;display: table-cell;width: 55px;height: 36px;text-align: center;top:12px; font-size:20px;}.main-menu:hover, nav.main-menu.expanded {width:250px;overflow:hidden;opacity:1;}.main-menu {background:#f7f7f7;position:absolute;top:0;bottom:0;height:100%;left:0;width:55px;overflow:hidden;-webkit-transition:width .2s linear;transition:width .2s linear;-webkit-transform:translatez(0) scale(1,1);box-shadow: 1px 0 15px rgba(0, 0, 0, 0.07);  opacity:1;}.main-menu>ul {margin:7px 0;}.main-menu li {position:relative;display:block;width:250px;  }.main-menu li>a {position:relative;width:255px;display:table;border-collap:collap;border-spacing:0;color:#8a8a8a;font-size: 13px;text-decoration:none;-webkit-transform:translatez(0) scale(1,1);-webkit-transition:all .14s linear;transition:all .14s linear;font-family: 'strait', sans-rif;border-top:1px solid #f2f2f2;text-shadow: 1px 1px 1px  #fff;  }.main-menu .nav-icon {  position:r简单英语故事elative;display:table-cell;width:55px;height:36px;text-align:center;vertical-align:middle;font-size:18px;}.main-menu .nav-text  {   position:relative;display:table-cell;vertical-align:middle;width:190px;font-family: 'titillium web', sans-rif;}.main-menu .share {}.main-menu .fb-like {left: 180px;position:absolute;top: 15px;}.main-menu>ul.logout {position:absolute;left:0;bottom:0;  }.no-touch .scrollable.hover {overflow-y:hidden;}.no-touch .scrollable.hover:hover {overflow-y:auto;overflow:visible;  }/* logo hover property */.ttings:hover, ttings:focus {     background:url( https://s17.postimg.org/74cl7s05b/logo_hover.jpg);  -webkit-transition: all 0.2s ea-in-out, width 0, height 0, top 0, left 0;-moz-transition: all 0.2s ea-in-out, width 0, height 0, top 0, left 0;-o-transition: all 0.2s ea-in-out, width 0, height 0, top 0, left 0;transition: all 0.2s ea-in-out, width 0, height 0, top 0, left 0; }.ttings:active, ttings:focus {     background:url( https://s3.postimg.org/bqfooag4z/startific.jpg);  -webkit-transition: all 0.1s ea-in-out, width 0, height 0, top 0, left 0;-moz-transition: all 0.1s ea-in-out, width 0, height 0, top 0, left 0;-o-transition: all 0.1s ea-in-out, width 0, height 0, top 0, left 0;transition: all 0.1s ea-in-out, width 0, height 0, top 0, left 0; }a:hover,a:focus {text-decoration:none;border-left:0px solid #f7f7f7;}nav {-webkit-ur-lect:none;-moz-ur-lect:none;-ms-ur-lect:none;-o-ur-lect:none;ur-lect:none;  }nav ul,nav li {outline:0;margin:0;padding:0;text-transform: upperca;}/* darker element side menu start*/.darkerli{background-color:#ededed;text-transform:capitalize;  }.darkerlishadow{background-color:#ededed;text-transform:capitalize;  -webkit-box-shadow: int 0px 5px 5px -4px rgba(50, 50, 50, 0.55);-moz-box-shadow:    int 0px 5px 5px -4px rgba(50, 50, 50, 0.55);box-shadow:         int 0px 5px 5px -4px rgba(50, 50, 50, 0.55);}.darkerlishadowdown{background-color:#ededed;text-transform:capitalize;  -webkit-box-shadow: int 0px -4px 5px -4px rgba(50, 50, 50, 0.55);-moz-box-shadow:    int 0px -4px 5px -4px rgba(50, 50, 50, 0.55);box-shadow:         int 0px -4px 5px -4px rgba(50, 50, 50, 0.55);}/* darker element side menu end*/.main-menu li:hover>a,nav.main-menu li.active>a,.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus,.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus,.no-touch .dashboard-page nav.dashboard-menu ul li:hover a,.dashboard-page nav.dashboard-menu ul li.active a {color:#fff;background-color:#00bbbb;text-shadow: 0px 0px 0px; }.area {float: left;background: #e2e2e2;width: 100%;height: 100%;}@font-face {  font-family: 'titillium web';  font-style: normal;  font-weight: 300;  src: local('titillium weblight'), local('titilliumweb-light'), url(http://themes.googleurcontent.com/static/fonts/titilliumweb/v2/anmuvcnt0h1yn4fii8wpr24bncneoftps2btjf6fb5e.woff) format('woff');}

以上就是css3实现的侧滑菜单的详细内容,更多关于css3 侧滑菜单的资料请关注www.887551.com其它相关文章!

本文发布于:2023-04-07 18:42:39,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/zuowen/d729d83d7fa30c0434a441086f70d7d3.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:CSS3实现的侧滑菜单.doc

本文 PDF 下载地址:CSS3实现的侧滑菜单.pdf

相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图