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
width
الذي يتحكم في عرض العنصر. تمامًا مثل الخطوط ، سنستخدم px
(بكسل) لتحديد عرض الصورة. على سبيل المثال ، إذا أردنا إنشاء فئة CSS تسمى larger-image
تعطي عناصر HTML عرضًا يبلغ 500 بكسل ، فسنستخدم: <نمط>
.larger-image {
العرض: 500 بكسل ؛
}
</ النمط>
smaller-image
واستخدمها لتغيير حجم الصورة بحيث يكون عرضها 100 بكسل فقط. ملحوظة img
element should have the class smaller-image
.");'
- text: يجب أن تكون صورتك بعرض 100 بكسل. يجب أن يكون تكبير المتصفح بنسبة 100٪.
testString: 'assert($("img").width() === 100, "Your image should be 100 pixels wide. Browser zoom should be at 100%.");'
```
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: