col-xs-*
في Bootstrap على عناصر form
أيضًا! بهذه الطريقة ، سيتم توزيع مربعات الاختيار الخاصة بنا بشكل متساوٍ عبر الصفحة ، بغض النظر عن مدى اتساع دقة الشاشة. وضع علامة على جميع ثلاثة من مربعات الاختيار في عنصر <div class="row">
. ثم تداخل كل منها في عنصر <div class="col-xs-4">
. div
واحد row
.
testString: 'assert($("div.row:has(input[type=\"checkbox\"])").length > 0, "Nest all of your checkboxes inside one div
with the class row
.");'
- text: عش كل من مربعات الاختيار داخل div
الخاص بها باستخدام فئة col-xs-4
.
testString: 'assert($("div.col-xs-4:has(input[type=\"checkbox\"])").length > 2, "Nest each of your checkboxes inside its own div
with the class col-xs-4
.");'
- text: تأكد من أن كل عنصر من عناصر div
لديه علامة إغلاق.
testString: 'assert(code.match(/<\/div>/g) && code.match(/