开发者

php, gd and style

for example i have this html code:

<p><strong>Text text.</strong></p>
<p><span style="font-size: 14pt;"><span style="background-color开发者_运维技巧: #ff0000;">Text text...</span></span></p>

Possible write this text with this style on the image (with php GD)?

Thanks


See:

  • imagecolorallocate to set the red background color
  • imagestring to write a string onto an image (there's an argument for font size)
  • imageloadfont to load a bold version of a font

Post another question if you've tried writing it with these functions and have a specific problem

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜