当前位置: 首页 > news >正文

一级做a爱网站免费网站友情链接检测

一级做a爱网站免费,网站友情链接检测,网站建设有哪些技术,专做母婴食品的网站bootstrap自带的响应式导航栏是向下滑动的,但是有时满足不了个性化的需求: 侧滑栏使用定位fixed 使用bootstrap响应式使用工具类 visible-sm visible-xs hidden-xs hidden-sm等对不同屏幕适配 侧滑栏的侧滑效果不使用jquery方法来实现,使用的是css3 tr…

bootstrap自带的响应式导航栏是向下滑动的,但是有时满足不了个性化的需求:

侧滑栏使用定位fixed
使用bootstrap响应式使用工具类 visible-sm visible-xs hidden-xs hidden-sm等对不同屏幕适配

侧滑栏的侧滑效果不使用jquery方法来实现,使用的是css3 transforms属性进行div的移动,侧滑的动画效果使用的是css属性transition
 <!--手机导航栏--><div id="mobile-menu" class="mobile-nav visible-xs visible-sm"><ul><li><a href="#">首页</a></li><li><a href="#">Java</a></li><li><a href="#">SVN</a></li><li><a href="#">iOS</a></li></ul></div><!--pc导航栏--><nav class="navbar-inverse visible-lg visible-md" role="navigation"><div class="container"><div class="navbar-header"><a class="navbar-brand" href="#">菜鸟教程</a></div><div><ul class="nav navbar-nav"><li class="active"><a href="#">iOS</a></li><li><a href="#">SVN</a></li><li><a href="#" class="dropdown-toggle" data-toggle="dropdown">Java</a></li></ul></div></div></nav><!--手机导航栏侧滑--><div class="nav-btn visible-xs visible-sm"><a href="#" class="mobile-nav-taggle" id="mobile-nav-taggle"><span class="glyphicon glyphicon-align-justify"></span></a></div>

css实现布局和侧滑效果(侧滑的关键css3属性transform、transition)

  * {margin:0;padding:0;}#mobile-menu {position:fixed;top:0;left:0;width:220px;height:100%;background-color:#373737;z-index:9999;}a:hover ,a:focus{text-decoration:none}.mobile-nav ul li a {color:gray;display:block;padding:1em 5%;    border-top:1px solid #4f4f4f;border-bottom:1px solid #292929;transition:all 0.2s ease-out;cursor:pointer;#mobile-menu {position:fixed;top:0;left:0;width:220px;height:100%;background-color:#373737;z-index:9999;transition:all 0.3s ease-in;}}.mobile-nav ul li a:hover {background-color: #23A1F6;color: #ffffff;}.show-nav {transform:translateX(0);}.hide-nav {transform:translateX(-220px);} /*侧滑关键*/.mobile-nav-taggle {height:35px;line-height:35px;width:35px;background-color:#23A1F6;color:#ffffff;display:inline-block;text-align:center;cursor:pointer}.nav.avbar-inverse{position:relative;}.nav-btn {position:absolute;right:20px;top:20px;}
.show-nav {transform:translateX(0);}.hide-nav {transform:translateX(-220px);} /*侧滑关键*/.show-content {transform:translateX(+220px);} /*侧滑关键*/或者.show-contenn {margin-left:220px} /*侧滑关键*/

实现侧滑关键 是css3的两个属性
transform:旋转div,支持元素2D或3D旋转,属性值translateX(X)就是在X轴上移动Xpx的距离
margin-left:200px;

而侧滑的动画效果是使用transition属性,设置属性的过渡动画的效果,语法
transition: property duration timing-function delay;
http://www.w3school.com.cn/cssref/pr_transition.asp
在这里插入图片描述
在这里插入图片描述

效果

在这里插入图片描述

版权声明:本文为CSDN博主「dotnet全栈开发」的原创文章,遵循CC 4.0
BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/kebi007/article/details/76038251

http://www.hkea.cn/news/501252/

相关文章:

  • 网站建设 seojsc宁德seo推广
  • 建立网站的作用信息流优化师工作总结
  • 如何建设物流网站近期时事新闻
  • 网站开发大赛发言稿网址搜索
  • 论坛类型的网站怎么做拉新推广平台有哪些
  • pc官方网站视频专用客户端app
  • 成都哪家做网站建设比较好搜索关键词排名查询
  • 无锡网站优化推广广州网站推广运营
  • 电子商务网站开发的步骤短视频seo排名系统
  • 如何用模板做网站视频河北电子商务seo
  • 动态网站代码设计做小程序的公司
  • 网站建设软件开发的新闻北京关键词优化报价
  • 在上海做兼职在哪个网站好百度售后电话人工服务
  • 深圳网站开发招聘谁能给我个网址
  • 长沙做个网站多少钱怎样免费给自己的公司做网站
  • wordpress to微博优化营商环境条例
  • 做外贸通常用哪些网站seo网站监测
  • 电子商务网站建设解决方案必应搜索引擎
  • 企业网页制作与网站设计南京seo优化培训
  • sqlite开发网站想做网络推广的公司
  • 网页设计作业在线网站首页seo教程seo优化
  • 做个网站多钱域名备案查询系统
  • 饰品网站模板官网seo关键词排名系统
  • 文学网站做编辑百度笔记排名优化
  • 公司网站开发语言如何优化百度seo排名
  • 做网站较好的框架惠州百度推广排名
  • 网站建设和运营的课程推广软文发稿
  • 杭州企业网站建设方案ui培训
  • 个人站长做哪些网站好seo优化设计
  • 小白学做搭建网站软文街官方网站