带有变量php的重要字体

问题描述 投票:0回答:1

我需要用简单的一行创建一个简码:

$ret = '<i class="fa fa-sign-in" style="content: "\f090" !important;"></i> Texte';

标签!important是必需的。问题出在php的语法中,带有“和”。再有“然后是“然后”,并且不应用!important。

谢谢您帮助我。

php syntax quotes
1个回答
0
投票

使用此:

$ret = '<i class="fa fa-sign-in" style="content: \'\f090\' !important;"></i> Texte';
© www.soinside.com 2019 - 2024. All rights reserved.