btn-danger
هي لون الزر الذي ستستخدمه لإعلام المستخدمين بأن الزر يقوم بإجراء مدمر ، مثل حذف صورة قطة. إنشاء زر مع النص "حذف" وإعطائها فئة btn-danger
. لاحظ أن هذه الأزرار لا تزال بحاجة إلى فئات btn
و btn-block
. button
جديد مع النص "حذف".
testString: 'assert(new RegExp("Delete","gi").test($("button").text()), "Create a new button
element with the text "Delete".");'
- text: ''
testString: 'assert($("button.btn-block.btn").length > 2, "All of your Bootstrap buttons should have the btn
and btn-block
classes.");'
- text: يجب أن يكون لديك الزر الجديد فئة btn-danger
.
testString: 'assert($("button").hasClass("btn-danger"), "Your new button should have the class btn-danger
.");'
- text: تأكد من أن جميع عناصر button
لديك بها علامة إغلاق.
testString: 'assert(code.match(/<\/button>/g) && code.match(/Click here for cat photos.
Things cats love:
Top 3 things cats hate: