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
Lobster . لإجراء ذلك ، انسخ مقتطف الشفرة التالي وألصقه في الجزء العلوي من محرر الشفرة (قبل عنصر style الافتتاحي): <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css"> يمكنك الآن استخدام خط Lobster في CSS باستخدام Lobster باعتباره FAMILY_NAME كما في المثال التالي: font-family: FAMILY_NAME, GENERIC_NAME; . GENERIC_NAME اختياري ، وهو خط احتياطي في حالة عدم توفر الخط المحدد الآخر. يتم تغطيتها في التحدي التالي. أسماء العائلة حساسة لحالة الأحرف وتحتاج إلى لفها بين علامتي تنصيص إذا كان هناك فراغ في الاسم. على سبيل المثال ، تحتاج إلى علامات اقتباس لاستخدام الخط "Open Sans" ، ولكن لا تستخدم خط Lobster . Lobster font.");'
- text: ''
testString: 'assert($("h2").css("font-family").match(/lobster/i), "Your h2 element should use the font Lobster.");'
- text: استخدم محدد CSS h2 لتغيير الخط.
testString: 'assert(/\s*h2\s*\{\s*font-family\:\s*(\"|")?Lobster(\"|")?\s*;\s*\}/gi.test(code), "Use an h2 CSS selector to change the font.");'
- text: يجب أن يستمر عنصر p استخدام monospace للخط.
testString: 'assert($("p").css("font-family").match(/monospace/i), "Your p element should still use the font monospace.");'
```
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: