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
style
color
width
على سبيل المثال ، إذا أردنا إنشاء حد أحمر يبلغ 5 بيكسل حول عنصر HTML ، فيمكننا استخدام هذا الفصل الدراسي: <نمط>
.thin-red-border {
لون الحدود: أحمر.
border-width: 5px؛
نمط الحدود: صلب ؛
}
</ النمط>
img
الخاص بك فئة smaller-image
.
testString: 'assert($("img").hasClass("smaller-image"), "Your img
element should have the class smaller-image
.");'
- text: ''
testString: 'assert($("img").hasClass("thick-green-border"), "Your img
element should have the class thick-green-border
.");'
- text: امنح صورتك عرضًا بحدود 10 10px
.
testString: 'assert($("img").hasClass("thick-green-border") && parseInt($("img").css("border-top-width"), 10) >= 8 && parseInt($("img").css("border-top-width"), 10) <= 12, "Give your image a border width of 10px
.");'
- text: امنح صورتك نمطًا حدوديًا solid
.
testString: 'assert($("img").css("border-right-style") === "solid", "Give your image a border style of solid
.");'
- text: ''
testString: 'assert($("img").css("border-left-color") === "rgb(0, 128, 0)", "The border around your img
element should be green.");'
```
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: