12 2017 档案

同一DIV内,两个行内块元素不对齐的解决方案
摘要:这个跟基线对齐有关系,如果你给写文字的那个span设置一个vertical-align:top,就可以对齐,具体原因如下:从CSS2的可视化格式模型文档中可以看到:inline-block的基线是正常流中最后一个line box的基线,除非这个line box里面既没有line boxes或者本身o 阅读全文

posted @ 2017-12-22 11:21 朗月 阅读(10234) 评论(0) 推荐(5)

setCustomValidity
摘要:1. 默认提示 html5丰富了表单验证,例如: 1 2 3 <form> <input type=text required /> <input type=submit></form> <form> <input type=text required /> <input type=submit>< 阅读全文

posted @ 2017-12-22 09:01 朗月 阅读(1345) 评论(0) 推荐(0)

tween.js运动曲线
摘要:原文 https://www.cnblogs.com/mrsunny/archive/2011/06/21/2086080.html 四、线性美学 在 javascript动画、运动算法详细解释与分析 (一、Tween 运动算法) 中我们简单介绍了一下线性动画在javascript中的实现,你可能会 阅读全文

posted @ 2017-12-04 21:28 朗月 阅读(5221) 评论(0) 推荐(0)