3

Google Webfonts cheatsheet

 2 years ago
source link: https://devhints.io/google-webfonts
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Short snippets on using Google Webfonts in a web page.

Link tag

<link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css" />

CSS import

/* One font */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700');

/* Combining multiple fonts */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400italic|Montserrat:400,700'');

Great for using with Codepen.io or similar websites!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK