我创建了一个插件并使用php文件作为样式表文件
PHP样式表文件:
<?php
header(\'Content-type: text/css; charset: UTF-8\');
$x_position = 0;
$y_position = -40px;
?>
.blugin_box{
width:140px;
height:140px;
background:url("/mysite/wp-content/plugins/myimgfolder/my_img.png") no-repeat $x_position $y_position;
}
It works well , but 当我尝试使用plugins\\u url()时,如下所示,stylesheet stop loadingbackground:url(plugins_url()."/myimgfolder/my_img.png") no-repeat $x_position $y_position;
我怎样才能让它工作?