哪一个设计图像滑块,CSS或javascript是有效的? [英] Which one is efficient to design a image slider, CSS or javascript?

查看:78
本文介绍了哪一个设计图像滑块,CSS或javascript是有效的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有太多的javascript知识,所以我正在使用CSS



我尝试过:



i我用css设计,这是好办法吗?

I dont have much javascript knowledge so i am working with css

What I have tried:

i am designing with css, is it good way to do?

推荐答案

答案是 - 完全取决于你。



据我所知,我可以说Javascript / jQuery是实现图像滑块的最佳方式,因为你必须工作/编码较少(已经定义了很多东西)。你只需要调用方法来实现你想要的东西。



如果是CSS,你必须自己编写代码,你也必须这样做写Javascript / jQuery代码来滑动图像返回/下一步。



所以,选择是你的。
The answer is - Fully depend on you.

As per me, I can say Javascript/jQuery is the best way to implement image slider as you have to work/code less (as many things already defined). You only have to call the method for achieving what you want.

In case of CSS, you have to write the code on your own and that too you must have to write Javascript/jQuery code to slide the images Back/Next.

So, choice is yours.


这篇关于哪一个设计图像滑块,CSS或javascript是有效的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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