gpt4 book ai didi

php - 如何根据图像到中心图像​​的距离显示图像?

转载 作者:太空宇宙 更新时间:2023-11-04 14:16:49 25 4
gpt4 key购买 nike

enter image description here

这个例子就是我想要的。我想知道是否可以根据它们到中心图像​​的距离来显示 img1、img2 和 img3?(假设我知道 img1 和中心之间的距离是 2,img2 到中心的距离是 3,img3 到中心的距离是 1)

最佳答案

您需要使用 JavaScript 为您编写内联 CSS。 D3.js 库非常适合构建这些类型的图表。

这是 D3.js 网站上的一个类似示例: http://bl.ocks.org/couchand/6420534

这里有更多例子: https://github.com/mbostock/d3/wiki/Gallery

关于php - 如何根据图像到中心图像​​的距离显示图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20295789/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com