从右到左增加或成长div标签宽度 [英] Increase or grow a div tag width from right to left

查看:833
本文介绍了从右到左增加或成长div标签宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此​​,基本上需要做什么的是,在时间0,宽度为0,时间1,宽度应值逐渐增加,由右至左
我想最难的部分是从从右至左动画吧,我没有问题,动画的东西,从左至右像大小增加以下

So basically what needs to be done is that, at time 0, the width is 0, and time 1, the width should be increased graduately, from right to left i guess the hardest part is to animate it from 'right to left', i had no problem animating something that increases size from left to right like the following

 @-webkit-keyframes reducetime {
 0% {width: 100%;}
 25% {width: 75%;}
 50% {width: 50%;}
 75% {width: 25%;}
  to {width: 0%;}
}

我preFER解决方案并不需要额外的插件,但是如果没有其他的方式随时提供这样的解决方案。谢谢

I prefer solution does not require additional plugin, but feel free to provide solution like that if there is no other way. thanks

推荐答案

有演示 http://jsfiddle.net/ZJyYY /
只需使用float:正确放置在容器上的权利;)

There's demo http://jsfiddle.net/ZJyYY/ Just use float:right to place the container on the right ;)

这篇关于从右到左增加或成长div标签宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆