问题描述
任何人都可以点我有一个良好的ActionScript 3类处理砖石的风格布局阿拉 ted.com 网页?
Can anyone point me to a good Actionscript 3 class that handles "masonry" style layouts ala the ted.com homepage?
成品code短,任何人都可以形容/总结一个高效的算法处理这种影响?搜索打开了神秘篇关于KD树和其他类似的东西,这方法在我头上。
Short of finished code, can anyone describe / summarize an efficient algorithm that handles this effect? Searches turn up arcane articles about kd-trees and other such stuff that's way over my head.
借助 jQuery的砌体插件看起来不错,但我想逆向工程它没有取得多大成功。
The jQuery Masonry plugin looks great, but I tried reverse engineering it without much success.
在此先感谢!
推荐答案
这并不是你想要什么,但它有点的方式:
this doesn't do exactly what you want but it's somewhat in the way:
3或4个固定大小的盒子将有助于确定的:)
having 3 or 4 fixed sizes for boxes will help for sure :)
这篇关于编程砌体/空间调查布局的Actionscript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!