Dex*_*ter 15

根据CSS规范,所有三个示例的URL位都是有效的CSS.

请注意,规范会识别网址中的某些字符,如果存在,则需要使用反斜杠进行转义.in an unquoted URI, such as parentheses, commas, white space characters, single quotes (') and double quotes (").因此,您可能会发现在网址周围使用单引号或双引号会更好.

请注意,您需要以以下格式编写完整的CSS属性:

background: url( http://example.com );
Run Code Online (Sandbox Code Playgroud)