继续记录每章的学习,初识flux和redux
开始记录每章的学习,了解简单的react通讯
开头 在移动端实现像微信朋友圈的功能使用原生写有稍许繁琐,需要考虑图片的双指放大以及图片的滑动,使用jquery的插件photoswiper可以快速的实现这个效果。不过相比与淘宝的三倍放大,photoswiper则是在初始化时就必须填写双击放大时的宽高,有少许不方便。
原理
写之前先明确遍历的顺序。 前序 左中右 中序 中左右 后序 左右中
原理
css .fancy { line-height: 0.5; text-align: center; } .fancy span { display: inline-block; position: relative; } .fancy span:before, .fancy span:after { content: ""; position: absolute; height: 5px; border-bottom: 1px solid white; border-top: 1px solid white; top: 0; width: 600px; } .fancy span:before { right: 100%; margin-right: 15px; } .fancy span:after { left: 100%; margin-left: 15px; } html <p class="fancy"><span>A fancy subtitle</span></p>