- 博客(15)
- 收藏
- 关注
原创 字 轮播
.header_content{display: inline-block;height:50px;width: 80%;margin-left: 15px;font-size: 34px;font-weight: bold;color: #fff;vertical-align: center;white-space: nowrap;/* word-break: keep-al...
2018-12-20 17:29:27
188
原创 用百度地图不用key
<script src="http://api.map.baidu.com/api?v=1.4"></script> 1.4这个版本不需要KEY var map = new BMap.Map('map'); var point = new BMap.Point($scope.hospital.hospitalLongitude, $...
2018-12-13 16:26:18
1730
原创 小经验
ng-repeat 保存 $index, ng-init=“item = KaTeX parse error: Expected '}', got 'EOF' at end of input: …d = "{{item}}{{index}}”,item 是因为2层嵌套 选择了id 为 第一层 index第二层index第二层index第二层index;ng-class 使用.index {}...
2018-12-10 11:06:37
157
转载 CSS动画+ content 实现 loading 。 。 。 动画
dot { display: inline-block; height: 1em; line-height: 1; vertical-align: -.25em; overflow: hidden;}dot::before { display: block; content: '...\A..\A.'; white-space: pre...
2018-12-04 08:57:18
646
原创 移动端H5 实现textarea计数
监控 用户输入 oninput事件字数/ 200 var num = document.getElementById(‘num’); text.oninput = function() {if(this.value.length >= 200) {alert(“只能输入200字以内内容”)this.value = this.value.slice(0, 200);...
2018-11-28 13:16:50
632
原创 处理 input,textarea,label 等移动端点击阴影问题
textarea,input,label{ -webkit-tap-highlight-color: rgba(255,0,0,0); }
2018-11-28 11:12:16
424
原创 angular.js 接受response字符串类型报错
angular 会默认吧 后台返回的所有格式数据 转换成json 格式,例如字符串 ,如果返回单个 字符串 的话就会报错 ,transformResponse: angular.identity, 加上这条代码 就会返回原本返回的值不做处理。 transformResponse : 可以对response 进行处理...
2018-11-26 14:20:56
612
原创 移动端 overflow 失效解决方案
1.body {font-size: 14px;background-color: #efeff4 !important;margin: 0px;overflow-x: hidden;position:fixed;} 在body中添加 position:fixed ;2.将要隐藏滚动的内容加上一个包裹层div,然后给这个div设置高度为window.height() ,并且 over...
2018-11-21 09:13:36
2140
原创 Responsive Web Design Principles
img { width: 720px; }You can use:img {max-width: 100%;display: block;height: auto;}设置 图片宽度为容器最大宽度;图片 最好设计width height 为 原图片的1/2
2018-11-16 15:47:19
184
原创 移动端适配
可以采用 VW VH 作为 单位 例如 width: 10vw 10vw代表 屏幕宽度 的 10%,height : 20vh 代表 屏幕高度 的20% 英文原文 : vmin: 70vmin would be 70% of the viewport’s smaller dimension (height vs. width).英文原文 :vmax: 100vmax would be 100%...
2018-11-16 15:44:48
132
转载 为什么Jquery 要传 window 等对象
javascript,jQuery自执行函数(匿名函数)为什么要把windows, jQuery, undefined作为参数传进去2017年05月25日 17:33:00 juddy123 阅读数:2485为什么要传入 window ?可以提高程序效率为什么能提高效率,得从javascript的机制说起,所谓的scope chain作用域链,在当前作用域中如果没有该属性(局部变量)则向...
2018-11-08 11:27:58
958
原创 右上角斜的 商标 标志实现
.youshang { position: absolute; width: 100px ; height: 100px ; background: lightgreen; transform: rotate(45deg); top:-50px; right :-50px ; c...
2018-11-06 13:16:58
973
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人