البرنامج التعليمي Bootstrap 3

BS HOME ابدأ BS BS Grid Basic بكالوريوس الطباعة جداول BS صور بكالوريوس BS Jumbotron بي إس ويلز تنبيهات BS أزرار BS مجموعات زر BS BS Glyphicons شارات / ملصقات BS أشرطة التقدم BS ترقيم الصفحات BS بكالوريوس بيجر مجموعات قائمة BS لوحات BS القوائم المنسدلة BS انهيار BS علامات التبويب / حبوب BS Navbar نماذج بكالوريوس مدخلات BS مدخلات BS 2 تحجيم المدخلات BS كائنات BS Media BS كاروسيل مشروط BS تلميح BS Tooltip BS Popover BS Scrollspy BS اللصقة مرشحات BS

شبكات التمهيد

نظام BS Grid BS مكدس / أفقي BS Grid Small BS شبكة متوسطة BS شبكة كبيرة أمثلة على شبكة BS

ثيمات Bootstrap

قوالب بكالوريوس موضوع BS "ببساطة أنا" موضوع BS "شركة" موضوع BS "الفرقة"

أمثلة التمهيد

أمثلة بكالوريوس اختبار BS تمارين البكالوريوس شهادة بكالوريوس

Bootstrap CSS المرجع

CSS جميع الفئات طباعة CSS أزرار CSS نماذج CSS مساعدي CSS صور CSS جداول CSS القوائم المنسدلة CSS ملاحق CSS الحروف الرسومية

Bootstrap JS المرجع

شبيبة الملحقة تنبيه JS زر JS JS Carousel طي JS JS المنسدلة شبيبة مشروط شبيبة بوبوفر شبيبة Scrollspy علامة التبويب JS JS Tooltip


مرجع نماذج Bootstrap CSS


إعدادات Bootstrap الافتراضية

تتلقى عناصر التحكم في النموذج الفردية بعض الأنماط العامة تلقائيًا باستخدام Bootstrap.

جميع العناصر النصية <input> و <textarea> و <select> مع class = "form-control" مضبوطة على العرض: 100٪؛ بشكل افتراضي.

القواعد القياسية لجميع تخطيطات النماذج الثلاثة:

  • ملصقات التفاف وعناصر تحكم النموذج في <div class="form-group">(مطلوب للتباعد الأمثل)
  • أضف فئة إلى كل العناصر .form-controlالنصية <input>والعناصر<textarea><select>

يقوم المثال التالي بإنشاء نموذج Bootstrap بسيط مع حقلي إدخال وخانة اختيار واحدة وزر إرسال:

مثال على نموذج التمهيد

<form>
  <div class="form-group">
    <label for="email">Email address:</label>
    <input type="email" class="form-control" id="email">
  </div>
  <div class="form-group">
    <label for="pwd">Password:</label>
    <input type="password" class="form-control" id="pwd">
  </div>
  <div class="checkbox">
    <label><input type="checkbox"> Remember me</label>
  </div>
  <button type="submit" class="btn btn-default">Submit</button>
</form>

فئات النموذج

Class Description Example
.form-inline Makes a <form> left-aligned with inline-block controls (This only applies to forms within viewports that are at least 768px wide)
.form-horizontal Aligns labels and groups of form controls in a horizontal layout
.form-control Used on input, textarea, and select elements to span the entire width of the page and make them responsive
.form-control-feedback Form validation class
.form-control-static Adds plain text next to a form label within a horizontal form
.form-group Container for form input and label

فئات الإدخال

Class Description Example
.input-group Container to enhance an input by adding an icon, text or a button in front or behind it as a "help text"
.input-group-lg Large input group
.input-group-sm Small input group
.input-group-addon Together with the .input-group class, this class makes it possible to add an icon or help text next to the input field
.input-group-btn Together with the .input-group class, this class attaches a button next to an input. Often used as a search bar
.input-lg Large input field
.input-sm Small input field