Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
@加戈;您可以使用 css3
background Clip
属性。例如
css:
查看此链接了解更多信息http://css-tricks.com/7850 -文本下的图像/
@gago; you can use css3
background clip
proprty.for example
css:
check this link for more http://css-tricks.com/7850-image-under-text/
-webkit-background-clip
完成这项工作此方法仅受
webkit
浏览器支持,这意味着您必须将color
属性和background-clip
设置为内容框,以防它在非 webkit
浏览器中失败-webkit-background-clip
does the jobThis method is only supported by
webkit
browsers which means you must set acolor
property andbackground-clip
as content-box incase it fails in anon-webkit
browser您拥有的示例图像可以使用包含此类图案的字体来实现。为此,您需要使用 css @font-face 或其他使用自定义字体的方式。
除此之外,我想说你唯一的选择是制作具有特定背景/样式的文本图像。
The example image that you have Could be achieved with a font that has such a pattern in it. For that you would need to use css @font-face or some other way of using custom fonts.
Aside from that I'd say that your only option is to make image of a text with a specific background/styling.