Vscode css background: url () problem

problem description

the css file in vscode sets background: url ( https://img.codeshelper.com/upload/img/2021/05/22/khk2wl4if3417186.png);. Saving will have an extra space url (http: / / xx.xx.xx/ss.png). What is the cause of

?

the platform version of the problem and what methods you have tried

disable all CSS-related plug-ins, with no effect

related codes

/ / Please paste the code text below (do not replace the code with pictures)
.error1 em {

            display: inline-block;
            width: 19px;
            height: 13px;
            background: url(http: //bd.huijiaoyun.com/resources/web/v3/images/upload/option/error1-1.png) center center no-repeat;
            position: absolute;
            left: 0;
            top: -3px;
        }

what result do you expect? What is the error message actually seen?

is also saved as url ( https://img.codeshelper.com/upload/img/2021/05/22/khk2wl4if3417186.png);

)
May.22,2021

try to change it to
url (' http://.')


have you enabled automatic formatting when saving?
the vscode plug-in causes problems with css formatting. There is no problem with quotation marks. It may be that a small bug, of the plug-in can only be formatted without quotation marks.

Menu