- 博客(8)
- 收藏
- 关注
原创 百度地图api的引用
.BMapLabel{display: none!important;} .BMapLib_nav_tab{display: none!important;} .BMapLib_nav{display: none!important;} .anchorBL{display: none;} #map{min-height: 600px; width: 100%;clear: b
2017-02-20 17:15:57
1120
原创 jquery实现全屏代码+下拉底部
*{margin: 0;padding: 0;} #footer{width: 100%;background: #000;display: none;} //全屏图像+底部var scrollFunc=function(e){ e=e || window.event; var t1=documen
2017-02-20 15:43:09
615
原创 js让头部悬浮
.xg{position: fixed;top: 0px;margin-top: 0px!important;} $(document).ready(function(){ var textHeight=$('#test').offset().top; $(window).scroll(function(){ var winHeigh
2017-02-20 15:30:07
574
原创 js点击按钮切换栏目
.nav_tab{width: 50%;margin: 0 auto;overflow: hidden;} .nav_tab li{height: 40px;background: #ccc;float: left;list-style: none;margin:10px 1% 0 1%;text-align: center;line-height: 40px;border-radius: 5
2017-02-20 14:16:58
1512
原创 js给当前跳转的页面a标签添加class或者id
给当前跳转的页面a标签添加样式 $(document).ready(function(){ var local=window.location.href; var tda=$('.td li a'); for(i=0;i<tda.length;i++){ var cd=tda.length if(local.toLowerCase()==tda[i].href.toLower
2017-02-20 11:57:23
3793
原创 IE浏览器引用css样式表的方法
IE浏览器引用css样式表的方法:1.Hack的写法::root .demo {color: #ff09;}/* IE 9 的写法 */*:first-child+html .demo {color: green;}/* 仅仅IE7浏览器 */.demo { color: gray; /* 基本的 */ color: pink\9; /* IE9以下(IE 8 及低
2017-02-17 17:53:49
534
原创 div中的文字和图片水平居中的方法
css文字水平居中的案例1:.page{text-align: center;}这是需要水平居中的文字css文字水平居中的案例2:.page{display: flex;justify-content: center;}这是需要水平居中的文字css图片水平居中的案例1:css图片水平居中的案例2:.tu img{display: bloc
2016-12-15 15:24:42
5406
原创 如何解决ul中li的边距问题
在使用css经常遇到li右边距多出导致换行的问题。 解决方法1:div溢出隐藏、ul负边距。.clearfix{clear: both;overflow: hidden;} .box{width: 1200px;margin: auto;} li{list-style: none;
2016-12-14 22:34:12
17753
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人