虽然我可以对英语以外的其他语言(目前使用希伯来语)应用较重的(400+)权重,但是对于较轻的权重(300及以下)却无法做到这一点
的HTML
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,600,700,800,300' rel='stylesheet' type='text/css'>
<div>
<h6>Hello to you<h6>
<p class="light">Selling you something with elegant font weight contrast.</p
</div>
<h6 class="rtl">שלום לכם<h6>
<p class="light rtl">מוכר לכם משהו אבל באסה כי המשקל לא עובד ככה.</p>
<h6 class="rtl">שלום לכם<h6>
<p class="light rtl heavy">מוכר לכם משהו אבל באסה כי המשקל לא עובד ככה.</p
</div>
的CSS
body {
font-family: 'Open Sans';
}
.light {
font-weight: 300;
font-size:18px;
color:#4c4c4c;
margin:0;
}
.heavy {
font-weight:900;
}
h6 {
font-size:24px;
margin:0;
color:#696f72;
}
div {
margin:0;
}
.rtl {
direction:rtl;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句