jQuery 代码在屏幕上显示多个/可点击的图形图标
那里有很多示例代码,但我找不到任何完全符合要求的代码。我应该解释一下,我对 jQuery 编码或 HTML 相对较新。
我需要创建代码来显示许多包含图形内容的图标(方块)。图标需要可点击并捕获点击事件。图标本身应该可以(可能)显示在 8 x 10 图标的不可见网格中,但由于屏幕的大小是可调整的,如果在屏幕大小更改时这是动态的,那么会很方便。单击时图标可能需要更改颜色,并且我可能需要一个选项以在禁用模式下显示某些图标。
有没有人遇到过部分符合此要求的代码? 我会继续寻找,但如果想到什么,我会很乐意的。
向大家问好。
贾森
There's a lot of example code out there but I'm not able to find anything that fits the bill exactly. I should explain that I am relatively new to jQuery coding, or HTML for that matter.
I need to create code to display a number of icons (squares) containing graphical content. The icons need to be clickable and the click event captured. The icons themselves should be displayable in (possibly) an invisible grid of 8 x 10 icons, but as the screen is resizable it would be handy if this was dynamic when the screen size was changed. The icons need to possibly change colour when clicked and I may need an option to show some icons in a disabled mode.
Has anyone come across any code which partially fits this requirement?.
I'll keep looking but would be oblige if anything springs to mind.
Regards to all.
Jason
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
沿着这些思路的东西..?
只需阅读一些基本的 jQuery 函数,一切都非常容易理解:)
http://api.jquery。 com/click/
http://api.jquery.com/css/
http://api.jquery.com/animate/
注意:如果你想对颜色进行动画处理,你需要 < a href="http://jqueryui.com/" rel="nofollow">jQuery UI
Something along those lines..?
Just read around some of the basic jQuery functions, it's all really easy to follow :)
http://api.jquery.com/click/
http://api.jquery.com/css/
http://api.jquery.com/animate/
note: if you want to animate colours, you need jQuery UI