Click here to view more cat photos.

Things cats love:
- cat nip
- laser pointers
- lasagna
Top 3 things cats hate:
- flea treatment
- thunder
- other cats
--- id: bad87fee1348bd9aede08807 title: 設置元素的字體族名 challengeType: 0 videoUrl: 'https://scrimba.com/c/c3bvpCg' forumTopicId: 18278 dashedName: set-the-font-family-of-an-element --- # --description-- 通過 `font-family` 屬性,我們可以設置元素裏的字體族名。 如果你想將 `h2` 元素的字體設置爲 `sans-serif`,可以這樣寫: ```css h2 { font-family: sans-serif; } ``` # --instructions-- 請將 `p` 元素的字體設置爲 `monospace`。 # --hints-- `p` 元素應使用 `monospace` 作爲字體。 ```js assert( $('p') .not('.red-text') .css('font-family') .match(/monospace/i) ); ``` # --seed-- ## --seed-contents-- ```html
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate:
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: