自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 npm 安装

npm initnpm install 之前 需要初始化

2019-01-04 14:17:09 244

原创 字 轮播

.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

原创 textarea placeholder 失效 原因

标签中有空格会导致placeholder中的值失效

2018-11-21 16:24:34 613

原创 移动端 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

原创 某些浏览器body 自带8px magrin

2018-11-20 09:12:01 1127

原创 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关注的人

提示
确定要删除当前文章?
取消 删除