-moz-background-clip: *text* in Mozilla

可紊 提交于 2019-11-29 20:30:27

问题


Is there a good way to implement this in Mozilla? I have done it successfully in Webkit using -webkit-background-clip: text;. I have been trying to implement it into Firefox with no success. MDN has it listed as -moz-background-clip but there is no 'text' attribute. The finalized CSS3 attribute is background-clip but I have not been able to find if 'text' is a valid option across engines or if it is a webkit only thing. Thanks in advance for the clarification!


回答1:


I think Webkit is on their own in supporting this feature at this point. Found an interesting cross-browser variation that uses SVG though: http://www.myadzel.ru/tests/html/text-background/.



来源:https://stackoverflow.com/questions/5466650/moz-background-clip-text-in-mozilla

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!