Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改目的地图片的颜色?假设我们有一个来自 URL 的具有两种颜色的图像(例如:黑色和白色或棕色和白色),并且希望在我们的 URL 中以不同的颜色显示该图像。PHP或JavaScript中有什么功能吗?
您是指使用 GD 库吗?
您可以通过使用 url 中的 get 函数来解决此问题
示例网址。domain.com/index.php?bgcolor=#234218
$bg_color = $_get[bgcolor];