البرنامج التعليمي 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


أشكال صورة Bootstrap

زوايا مدورة:

خمس دول

دائرة:

خمس دول

ظفري:

خمس دول

زوايا مدورة

يضيف الفصل .img-roundedزوايا مستديرة للصورة (لا يدعم IE8 الزوايا المستديرة):

مثال

<img src="cinqueterre.jpg" class="img-rounded" alt="Cinque Terre">

دائرة

يقوم .img-circleالفصل بتشكيل الصورة على شكل دائرة (لا يدعم IE8 الزوايا المستديرة):

مثال

<img src="cinqueterre.jpg" class="img-circle" alt="Cinque Terre">

ظفري

يقوم .img-thumbnailالفصل بتشكيل الصورة إلى صورة مصغرة:

مثال

<img src="cinqueterre.jpg" class="img-thumbnail" alt="Cinque Terre">


صور مستجيبة

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

قم بإنشاء صور متجاوبة عن طريق إضافة .img-responsiveفئة إلى <img>العلامة. سيتم بعد ذلك تغيير حجم الصورة بشكل جيد مع العنصر الأصلي.

.img-responsiveينطبق display: block;الفصل وعلى max-width: 100%;الصورة height: auto;:

مثال

<img class="img-responsive" src="img_chania.jpg" alt="Chania">

معرض الصور

يمكنك أيضًا استخدام نظام شبكة Bootstrap مع .thumbnailالفصل لإنشاء معرض للصور.

ملاحظة: سوف تتعلم المزيد عن نظام الشبكة لاحقًا في هذا البرنامج التعليمي (كيفية إنشاء تخطيط بكمية مختلفة من الأعمدة).

مثال

 <div class="row">
  <div class="col-md-4">
    <div class="thumbnail">
      <a href="/w3images/lights.jpg">
        <img src="/w3images/lights.jpg" alt="Lights" style="width:100%">
        <div class="caption">
          <p>Lorem ipsum...</p>
        </div>
      </a>
    </div>
  </div>
  <div class="col-md-4">
    <div class="thumbnail">
      <a href="/w3images/nature.jpg">
        <img src="/w3images/nature.jpg" alt="Nature" style="width:100%">
        <div class="caption">
          <p>Lorem ipsum...</p>
        </div>
      </a>
    </div>
  </div>
  <div class="col-md-4">
    <div class="thumbnail">
      <a href="/w3images/fjords.jpg">
        <img src="/w3images/fjords.jpg" alt="Fjords" style="width:100%">
        <div class="caption">
          <p>Lorem ipsum...</p>
        </div>
      </a>
    </div>
  </div>
</div>

التضمينات المستجيبة

اسمح أيضًا لمقاطع الفيديو أو عروض الشرائح بالحجم المناسب على أي جهاز.

يمكن تطبيق الفئات مباشرة على عناصر <iframe> و <embed> و <video> و <كائن>.

The following example creates a responsive video by adding an .embed-responsive-item class to an <iframe> tag (the video will then scale nicely to the parent element). The containing <div> defines the aspect ratio of the video:

Example

<div class="embed-responsive embed-responsive-16by9">
  <iframe class="embed-responsive-item" src="..."></iframe>
</div>

What is aspect ratio?

The aspect ratio of an image describes the proportional relationship between its width and its height. Two common video aspect ratios are 4:3 (the universal video format of the 20th century), and 16:9 (universal for HD television and European digital television).

You can choose between two aspect ratio classes:

<!-- 16:9 aspect ratio -->
<div class="embed-responsive embed-responsive-16by9">
  <iframe class="embed-responsive-item" src="..."></iframe>
</div>

<!-- 4:3 aspect ratio -->
<div class="embed-responsive embed-responsive-4by3">
  <iframe class="embed-responsive-item" src="..."></iframe>
</div>

Test Yourself With Exercises

Exercise:

Use a Bootstrap class to shape the image as a circle.

<img src="img_chania.jpg" alt="Chania" class=""> 


Complete Bootstrap Image Reference

For a complete reference of all image classes, go to our complete Bootstrap Image Reference.