会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
容忍君
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
24
下一页
2020年3月26日
css 背景图片增加透明度
摘要: div { width: 200px; height: 200px; display: block; position: relative; } div::after { content: ""; background: url(image.jpg); opacity: 0.5; top: 0; l
阅读全文
posted @ 2020-03-26 10:01 容忍君
阅读(9592)
评论(0)
推荐(1)
2020年3月19日
for循环详解
摘要: 哪些数据结构部署了 Symbol.iteratoer属性了呢? 只要有 iterator 接口的数据结构,都可以使用 for of循环。 数组 Array Map Set String arguments对象 Nodelist对象, 就是获取的dom列表集合 以上这些都可以直接使用 for of 循
阅读全文
posted @ 2020-03-19 11:47 容忍君
阅读(186)
评论(0)
推荐(0)
2020年3月15日
jQ原理
摘要: 1. //jQ对象和原声对象是不同的 $('#').html() document.getElementById('#').innerHTML //jQ对象转成原生对象方法 $('#')[0] $('#').get(0) //原生转成jQ对象 $(原生对象) //实现 function $(sele
阅读全文
posted @ 2020-03-15 15:21 容忍君
阅读(291)
评论(0)
推荐(0)
2020年3月14日
css3 HTML5
摘要: 常用css3属性 border-radius box-shadow 边框阴影 background-size: 可以设置宽高;cover(整个背景图都放进来,但是有可能溢出)/contain(背景图被包含div 可能有些地方没有背景图) 动画::transform/变形 旋转 rotate(30de
阅读全文
posted @ 2020-03-14 23:58 容忍君
阅读(245)
评论(0)
推荐(0)
深度测试题
摘要: 一个原型题(注意我做错的部分) const foo = {} const f = function() {} Function.prototype.a = 'value a' Object.prototype.b = 'value b' console.log(foo.a, foo.b, f.a,
阅读全文
posted @ 2020-03-14 19:25 容忍君
阅读(262)
评论(0)
推荐(0)
jQuery 进阶用法
摘要: $(function() { $(window).on('resize', function () {//监听屏幕大小改变事件 let clientW = $(window).width()//获取可视窗口宽度 let $allItems = $('.carousel-inner .carousel
阅读全文
posted @ 2020-03-14 19:11 容忍君
阅读(213)
评论(0)
推荐(0)
2020年3月13日
bootstarp技巧
摘要: 1.设置垂直居中 //父元素 b-flex justify-content-center align-align-items-center
阅读全文
posted @ 2020-03-13 09:39 容忍君
阅读(216)
评论(0)
推荐(0)
2020年3月11日
引入第三方字体
摘要: 字体下载:https://www.fontke.com/ @font-face{ font-family: '字体名称随便起'; src: url('../font/字体名称.eot'); src:url('../font/字体名称.woff') format('woff'), url('../fo
阅读全文
posted @ 2020-03-11 19:32 容忍君
阅读(499)
评论(0)
推荐(0)
bootstrap
摘要: bootstrap特点 响应式布局:伸缩布局的成熟(流式布局)//响应式一套部署 用处:后台管理系统(引入组件eCharts)前端:展示性页面(不要太复杂的业务逻辑,展示为主) 兼容性: 基本pc端 移动端 全平台兼容 (跨平台,跨浏览器) 更新:社区更新活跃 从CDN引入优点: 本地体积小(托管在
阅读全文
posted @ 2020-03-11 13:20 容忍君
阅读(387)
评论(0)
推荐(0)
2020年3月10日
bootstarp
摘要: 1 一行默认列的总和单位12 行 row 列 col-md-3 当列数大于12会另外起一行 2 有四种屏幕的自适应 3 重置行高度 设置行高同时又想保证换行(高度不一致) 中间加上 <div class='clearfix'> 4.列的移动,但是不重叠。影响换行 <div class="clo-md
阅读全文
posted @ 2020-03-10 23:35 容忍君
阅读(240)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
24
下一页
公告