Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
CSS 与图像生成无关,只是 DOM 元素的呈现——如果你想在 HTML/DOM 窗口中创建它,你可以这样做,但如果你想通过 PHP 实际生成图像,< a href="http://php.net/manual/en/book.imagick.php" rel="nofollow noreferrer">ImageMagick 通常是人们使用的路线(尽管您需要在服务器上安装 ImageMagick )。
CSS has nothing to do with image-generation, just presentation of DOM elements--if you want to create it in an HTML/DOM window, you could do such, but if you're looking to actually generate an image via PHP, ImageMagick is generally route people go (though you'll need ImageMagick installed on the server).
最好的方法可能完全是服务器端(即使用 php 或您选择的语言)。另一种选择是完全在客户端,即使用 Javascript 和 CSS - 在这里您需要每个字母绝对定位,并且可能会产生一些性能开销。
The best approach would probably be entirely server side (i.e. with php or you language of choice). The other option would be entirely client side, that is, with Javascript and CSS - here you would need each letter to be absolutely positioned, and there would likely be a bit of performance overhead.
我不太清楚你在问什么。通过使用 mask 可以非常轻松地完成“填充框架”。大多数图形平台在服务器(gd、image magick)或客户端(flash、html canvas)上都支持这一点。
如果您询问如何以编程方式创建这些之一,这是稍微复杂一点;)
I'm not quite clear what you're asking. "Filling the frame" can be pretty easily done by using a mask. Most graphic platforms support this, on the server (gd, image magick) or on the client (flash, html canvas).
If you're asking how to programmatically create one of these, this is going to be slightly more complicated ;)