Open lefex opened 5 years ago
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
.btn {
color: black;
text-decoration: none;
}
.btn:hover {
color: #0055cc;
}
.btn:active {
color: #004ab3;
}
.btn:focus {
outline: thin dotted #333;
}
解决模块组件化问题 https://www.webpackjs.com/
React 知乎专栏 https://zhuanlan.zhihu.com/leanreact
block,inline和inline-block概念和区别
https://www.cnblogs.com/2050/p/3877280.html 解读 viewport—网页自适应移动 app 神器 https://juejin.im/entry/58e750a02f301e0062367ded
980px或1024px
devicePixelRatio dpi
https://www.w3.org/TR/css-flexbox/ https://css-tricks.com/snippets/css/a-guide-to-flexbox/ https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html http://www.ruanyifeng.com/blog/2015/07/flex-examples.html https://zellwk.com/blog/simple-form-with-flexbox/ https://codepen.io/airen/full/YREoPq/ https://codepen.io/dwatow/pen/Nwmojy https://segmentfault.com/a/1190000017115802
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
body {
width: 500px;
/* 下面这句话竟然能居中 */
margin: 0 auto;
background-color: gainsboro;
}
div {
color: red;
}
</style>
</head>
<body>
<div>
<p>|__div->p1</p>
<p>|__div->p2</p>
<section>
<p>|_____div->section->p</p>
<p>|_____div->section->p</p>
<div>|_____div->section->div</div>
</section>
</div>
<p>|__p1</p>
<p>|__p2</p>
</body>
</html>
It also links to these informative documents:
W3C: What is the Document Object Model? https://www.w3.org/TR/DOM-Level-2-Core/introduction.html MDN: Introduction - Document Object Model https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Introduction Wikipedia: Document Object Model
https://tc39.es/ecma262/ ECMA 标准
http://v1.iviewui.com/docs/guide/start 一套基于 Vue.js 的高质量 UI 组件库
let t1 = 0; let t2 = 0; let timer = null; // 定时器 // scroll监听 document.onscroll = function () { // 需要禁止左右滑动 islider.onMoving = false; clearTimeout(timer); timer = setTimeout(function () { t2 = document.documentElement.scrollTop || document.body.scrollTop; if (t2 === t1) { console.log('滚动结束了'); // 需要禁止左右滑动 islider.onMoving = false; } }, 500); t1 = document.documentElement.scrollTop || document.body.scrollTop; };
function logFrame(target) { let pros = ['offsetTop', 'offsetLeft', 'offsetWidth', 'offsetHeight', 'scrollTop', 'scrollLeft', 'scrollWidth', 'scrollHeight', 'clientTop', 'clientLeft', 'clientWidth', 'clientHeight' ]; logProperties(pros, target); }
function logProperties(properties, target) { if (arguments.length < 1) { return; } else if (arguments.length === 1) { target = arguments[0]; properties = undefined; } for (let v in target) { if (properties) { if (properties.indexOf(v) > -1) { console.log(v + ' = ' + target[v]); } } else { console.log(v + ' = ' + target[v]); } } }
iOS浏览器 webkit 源码 https://trac.webkit.org/browser#webkit/releases/Apple/iOS%2010.0/WebKit2/Platform
Android 浏览器是基于 chromium http://www.chromium.org/Home
https://uniapp.dcloud.io/ 一套代码跑到任意小程序
https://hao.uisdc.com/ 设计导航网站
一个牛逼的东西 http://mockjs.com/