我可以在我的 joomla 网站中嵌入一个 masonry jquery 模板吗? [英] Can I embed a masonry jquery template into my joomla website?

查看:19
本文介绍了我可以在我的 joomla 网站中嵌入一个 masonry jquery 模板吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的网站上使用 Masonry 创建一个视频库,但我遇到了困难.

I want to create a video gallery using Masonry on my website but I'm having difficulty.

我使用 Joomla 作为我的 CMS,并且已经有一个来自火箭主题的模板,但在我的一个页面上,我想要一个视频列表(我将更新)供人们观看.我想让它具有视觉吸引力,砖石结构吸引了我的眼球,但我不知道如何启动和运行它.

I'm using Joomla as my CMS and already have a template im using from rocket themes but on one of my pages I want to have a list of videos (which I'll update) for people to watch. I want to make it visually appealing and masonry caught my eye but I fail to understand how to get it up and running.

Jquery 如何与 Joomla 一起工作(如果有的话)?

How does Jquery work with Joomla, if it does at all?

推荐答案

masonry 插件让您可以在容器内定义带有图像的网格.然后它使用 kd-tree 算法以最有效的方式对图像进行排序.该算法是众所周知的,例如从图形磁盘空间使用中,最大的文件获得屏幕上最大的矩形.kd-tree 也可以很好地添加一些空间信息.因此,如果您可以包含 masonry js 库并从数据库中动态选择您的视频并将其包装在 css 布局中到 joomla 模板中,我认为没有任何问题.

The masonry plugin let you define a grid with images inside a container. Then it uses a kd-tree algorithm to sort the images in the most efficient way. The algorithm is well know for example from graphical disk space usage where the biggest file gets the biggest rectangle on the screen. A kd-tree is also good to add some spatial information. Hence if you can include the masonry js library and dynamically pick a selection of your videos from the database and wrap it in a css layout into a joomla template I don't see any problem.

这篇关于我可以在我的 joomla 网站中嵌入一个 masonry jquery 模板吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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