cms比较容易写出循环的网页内容,对于有些循环的网页内容有不同css设定,这样在写cms时需要对循环做出条件判断:{if 判断条件}输出内容{else}输出内容{/if}。通过判断可以实现图片轮播效果,某些单独突出显示的内容 通过if判断实现一张大图和四个小图 ...
分类:
其他好文 时间:
2017-12-04 18:55:32
阅读次数:
185
前几篇给大家讲了ValueAnimator、ObjectAnimator的知识,讲解了它们ofInt(),ofFloat(),ofObject()函数的用法。细心的同学可能会注意到,ValueAnimator、ObjectAnimator除了这些创建Animator实例的方法以外,都还有一个方法: ...
分类:
移动开发 时间:
2017-12-04 14:56:43
阅读次数:
231
.tuiguang img{width:100%;} .tuiguang img:nth-child(1){position:relative;top:0;} .tuiguang img:nth-child(2){position:relative;left:100%;} .tuiguang img ...
分类:
其他好文 时间:
2017-12-03 19:05:28
阅读次数:
148
微信小程序连续旋转动画 https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-animation.html ...
分类:
微信 时间:
2017-12-01 19:37:17
阅读次数:
803
一、ofObject()概述 前面我们讲了ofInt()和ofFloat()来定义动画,但ofInt()只能传入Integer类型的值,而ofFloat()则只能传入Float类型的值。那如果我们需要操作其它类型的变量要怎么办呢?其实ValueAnimator还有一个函数ofObject(),可以传 ...
分类:
移动开发 时间:
2017-12-01 11:25:44
阅读次数:
282
主要是使用 css3的animation,scale等于1是原图大小,大于1是把图片放大,小于1 是把图片缩小。animation-delay用来延迟5秒触发这个动画 ...
分类:
Web程序 时间:
2017-11-30 19:16:10
阅读次数:
293
一、插值器 插值器,也叫加速器;有关插值器的知识,我在《Animation动画详解(二)——Interpolator插值器》中专门讲过,大家可以先看看这篇文章中各个加速器的效果。这里再讲一下什么是插值器。我们知道,我们通过ofInt(0,400)定义了动画的区间值是0到400;然后通过添加Anima ...
分类:
移动开发 时间:
2017-11-29 18:20:36
阅读次数:
224
public interface Interpolator implements TimeInterpolator android.view.animation.Interpolator Known Indirect Subclasses AccelerateDecelerateInterpolat ...
分类:
移动开发 时间:
2017-11-28 14:18:02
阅读次数:
167
不同点: 1. 触发条件不同。transition通常和hover等事件配合使用,由事件触发。animation则和gif动态图差不多,立即播放。 2. 循环。 animation可以设定循环次数。 3. 精确性。 animation可以设定每一帧的样式和时间。tranistion 只能设定头尾。 ...
分类:
其他好文 时间:
2017-11-24 15:02:25
阅读次数:
227
def regist(): if request.method == 'GET': return render_template('regist.html') else: username = request.form.get(‘username’)#获取form中的数据 判断用户名是否存在:存在报 ...
分类:
其他好文 时间:
2017-11-22 14:16:49
阅读次数:
177