div
. عيّن الصورة الأولى والعنصر h2
عنصر <div class="row">
. ضع العنصر h2
في <div class="col-xs-8">
وصورتك في <div class="col-xs-4">
بحيث تكون على نفس السطر. لاحظ كيف أصبحت الصورة الآن الحجم المناسب لتناسب النص؟ h2
عنصر h2
وعنصر img
العلوي معًا داخل عنصر div
مع row
.
testString: 'assert($("div.row:has(h2)").length > 0 && $("div.row:has(img)").length > 0, "Your h2
element and topmost img
element should both be nested together within a div
element with the class row
.");'
- text: ''
testString: 'assert($("div.col-xs-4:has(img)").length > 0 && $("div.col-xs-4:has(div)").length === 0, "Nest your topmost img
element within a div
with the class col-xs-4
.");'
- text: ضع العنصر h2
في div
باستخدام الفئة col-xs-8
.
testString: 'assert($("div.col-xs-8:has(h2)").length > 0 && $("div.col-xs-8:has(div)").length === 0, "Nest your h2
element within a div
with the class col-xs-8
.");'
- text: تأكد من أن كل عنصر من عناصر div
لديه علامة إغلاق.
testString: 'assert(code.match(/<\/div>/g) && code.match(/