Help Username [AD] trước tên - đã thử nhưng không được

BANHGAO

Private
1622557798681.png
 
{{ include('xenfocus_base.less') }}
{{ include('xenfocus_theme.less') }}

// Place your custom code below
/* ### User Banners ### */
.username .style1:before {
content: "[AD] ";
color: red;
}
.userBanner.userBanner--Administrator
{
&:before{
.m-faBase();
.m-faContent(@fa-var-crown);
padding-right: 4px; }
}
Đoạn CSS của bạn chưa đúng, bạn dán đoạn CSS lên đây mình sửa cho
 
CSS:
{{ include('xenfocus_base.less') }}
{{ include('xenfocus_theme.less') }}

// Place your custom code below
/* ### User Banners ### */
.username.style1:before {
content: "[AD] ";
color: red;
}
.userBanner.userBanner--Administrator
{
&:before{
.m-faBase();
.m-faContent(@fa-var-crown);
padding-right: 4px; }
}
 
CSS:
{{ include('xenfocus_base.less') }}
{{ include('xenfocus_theme.less') }}

// Place your custom code below
/* ### User Banners ### */
.username.style1:before {
content: "[AD] ";
color: red;
}
.userBanner.userBanner--Administrator
{
&:before{
.m-faBase();
.m-faContent(@fa-var-crown);
padding-right: 4px; }
}
vẫn k đc ạ
 
Bạn sử dụng CSS như thế này nhé!
Mã:
.username--style1:before {
    content: "[AD]";
    color: red;
}
 
Back
Top