Css “的作用是什么?”;src";及;url";财产?

Css “的作用是什么?”;src";及;url";财产?,css,Css,在呈现以下代码时,“src”属性的角色是什么 src属性用于标识字体文件的位置。它可以定义为local和/或通过远程url。在这种情况下,定义规定如果字体calibri安装在用户计算机上,则应使用该字体。如果没有,则需要在css文件夹中查找文件calibri.woff。 请查看中的信息,并从下面发布的链接获取更多信息 font-face的load()方法如下: interface FontFace { attribute DOMString family; attribute DOMSt

在呈现以下代码时,“src”属性的角色是什么


src
属性用于标识字体文件的位置。它可以定义为
local
和/或通过远程
url
。在这种情况下,定义规定如果字体
calibri
安装在用户计算机上,则应使用该字体。如果没有,则需要在css文件夹中查找文件
calibri.woff
。 请查看

中的信息,并从下面发布的链接获取更多信息

font-face
load()
方法如下:

interface FontFace {
  attribute DOMString family;
  attribute DOMString style;
  attribute DOMString weight;
  attribute DOMString stretch;
  attribute DOMString unicodeRange;
  attribute DOMString variant;
  attribute DOMString featureSettings;
  readonly attribute FontFaceLoadStatus status;
  Promise<FontFace> load();
  readonly attribute Promise<FontFace> loaded;
};
进一步:

它用于搜索用户系统中的“calibri”字体,如果不存在,它将从服务器加载该字体

interface FontFace {
  attribute DOMString family;
  attribute DOMString style;
  attribute DOMString weight;
  attribute DOMString stretch;
  attribute DOMString unicodeRange;
  attribute DOMString variant;
  attribute DOMString featureSettings;
  readonly attribute FontFaceLoadStatus status;
  Promise<FontFace> load();
  readonly attribute Promise<FontFace> loaded;
};
<url> [format(<string> #)]? | <font-face-name> ] #