Bootstrap စာသား/စာစီစာရိုက်
Bootstrap ၏ မူရင်းဆက်တင်များ
Bootstrap ၏ ကမ္ဘာလုံးဆိုင်ရာ ပုံသေဖောင့်အရွယ်အစားမှာ 14px ဖြစ်ပြီး လိုင်းအမြင့် 1.428 ဖြစ်သည်။
၎င်းကို <body>
ဒြပ်စင်နှင့် စာပိုဒ်အားလုံး ( <p>
) တွင် သက်ရောက်သည်။
ထို့အပြင်၊ <p>
ဒြပ်စင်အားလုံးတွင် ၎င်းတို့၏တွက်ချက်ထားသောမျဉ်းအမြင့် (ပုံမှန်အားဖြင့် 10px) ထက်ဝက်နှင့်ညီမျှသော အောက်ခြေအနားသတ်တစ်ခုရှိသည်။
Bootstrap နှင့် ဘရောက်ဆာ ပုံသေများ
ဤအခန်းတွင်၊ ဘရောက်ဆာမူရင်းများထက် Bootstrap ဖြင့် အနည်းငယ်ကွဲပြားစွာ ပုံစံချမည့် HTML အစိတ်အပိုင်းအချို့ကို ကြည့်ပါမည်။
<h1> - <h6>
ပုံမှန်အားဖြင့်၊ Bootstrap သည် HTML ခေါင်းစဉ်များ ( <h1>
သို့
<h6>
) ကို အောက်ပါနည်းလမ်း ဖြင့် ပုံစံထုတ်ပါမည်။
ဥပမာ
h1 Bootstrap heading (36px)
h2 Bootstrap heading (30px)
h3 Bootstrap heading (24px)
h4 Bootstrap heading (18px)
h5 Bootstrap heading (14px)
h6 Bootstrap heading (12px)
<small>
Bootstrap <small>
တွင် မည်သည့်ခေါင်းစဉ်မဆို ပေါ့ပါးသော ဒုတိယစာသားကို ဖန်တီးရန် HTML element ကို အသုံးပြုသည်-
ဥပမာ
h1 heading secondary text
h2 heading secondary text
h3 heading secondary text
h4 heading secondary text
h5 heading secondary text
h6 heading secondary text
<အမှတ်အသား>
Bootstrap သည် HTML <mark>
ဒြပ်စင်ကို အောက်ပါနည်းလမ်း ဖြင့် ပုံစံထုတ်ပါမည်။
ဥပမာ
Use the mark element to highlight text.
<abbr>
Bootstrap သည် HTML <abbr>
ဒြပ်စင်ကို အောက်ပါနည်းလမ်း ဖြင့် ပုံစံထုတ်ပါမည်။
ဥပမာ
The WHO was founded in 1948.
<blockquote>
Bootstrap သည် HTML <blockquote>
ဒြပ်စင်ကို အောက်ပါနည်းလမ်း ဖြင့် ပုံစံထုတ်ပါမည်။
ဥပမာ
For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.
ညာဘက်ရှိ ကိုးကားပြရန် .blockquote-reverse
အတန်းကို အသုံးပြုပါ-
ဥပမာ
For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.
<dl>
Bootstrap သည် HTML <dl>
ဒြပ်စင်ကို အောက်ပါနည်းလမ်း ဖြင့် ပုံစံထုတ်ပါမည်။
ဥပမာ
- Coffee
- - black hot drink
- Milk
- - white cold drink
<code>
Bootstrap သည် HTML <code>
ဒြပ်စင်ကို အောက်ပါနည်းလမ်း ဖြင့် ပုံစံထုတ်ပါမည်။
ဥပမာ
The following HTML elements: span
, section
, and div
defines a section in a document.
<kbd>
Bootstrap သည် HTML <kbd>
ဒြပ်စင်ကို အောက်ပါနည်းလမ်း ဖြင့် ပုံစံထုတ်ပါမည်။
ဥပမာ
Use ctrl + p to open the Print dialog box.
<pre>
Bootstrap သည် HTML <pre>
ဒြပ်စင်ကို အောက်ပါနည်းလမ်း ဖြင့် ပုံစံထုတ်ပါမည်။
ဥပမာ
Text in a pre element is displayed in a fixed-width font, and it preserves both spaces and line breaks.
ဆက်စပ်အရောင်များနှင့် နောက်ခံများ
Bootstrap တွင် "အရောင်များမှတဆင့်အဓိပ္ပာယ်" ကိုပေးဆောင်ရန်အသုံးပြုနိုင်သောဆက်စပ်ပစ္စည်းအတန်းအချို့ရှိသည်။
စာသားအရောင်များအတွက် အတန်းများမှာ- .text-muted
,
.text-primary
, .text-success
, , .text-info
,
.text-warning
, နှင့် .text-danger
:
ဥပမာ
This text is muted.
This text is important.
This text indicates success.
This text represents some information.
This text represents a warning.
This text represents danger.
နောက်ခံအရောင်များအတွက် အတန်းများမှာ- .bg-primary
,
.bg-success
, .bg-info
, .bg-warning
, နှင့် .bg-danger
:
ဥပမာ
This text is important.
This text indicates success.
This text represents some information.
This text represents a warning.
This text represents danger.
နောက်ထပ် စာစီစာရိုက်သင်တန်းများ
အောက်ဖော်ပြပါ Bootstrap အတန်းများကို ပုံစံ HTML အစိတ်အပိုင်းများသို့ ထပ်မံထည့်သွင်းနိုင်သည်-
Class | Description | Example |
---|---|---|
.lead |
Makes a paragraph stand out | |
.small |
Indicates smaller text (set to 85% of the size of the parent) | |
.text-left |
Indicates left-aligned text | |
.text-center |
Indicates center-aligned text | |
.text-right |
Indicates right-aligned text | |
.text-justify |
Indicates justified text | |
.text-nowrap |
Indicates no wrap text | |
.text-lowercase |
Indicates lowercased text | |
.text-uppercase |
Indicates uppercased text | |
.text-capitalize |
Indicates capitalized text | |
.initialism |
Displays the text inside an <abbr> element in a slightly smaller font size |
|
.list-unstyled |
Removes the default list-style and left margin on list items (works on both <ul> and <ol> ). This class only applies to immediate children list items (to remove the default list-style from any nested lists, apply this class to any nested lists as well) |
|
.list-inline |
Places all list items on a single line | |
.dl-horizontal |
Lines up the terms (<dt> ) and descriptions (<dd> ) in
<dl> elements side-by-side. Starts off like default <dl> s, but when the browser window expands, it will line up side-by-side |
|
.pre-scrollable |
Makes a <pre> element scrollable |
Bootstrap စာစီစာရိုက်အကိုးအကားကို အပြီးသတ်ပါ။
စာစီစာရိုက်ဒြပ်စင်/အတန်းများအားလုံး၏ အပြည့်အစုံကိုးကားရန်အတွက်၊ ကျွန်ုပ်တို့၏ Bootstrap စာစီစာရိုက်အကိုးအကား အပြည့်အစုံသို့ သွားပါ ။
ဆက်စပ်အတန်းများအကြောင်း နောက်ထပ်အချက်အလက်များအတွက် ကျွန်ုပ်တို့၏ Bootstrap Helper Classes ရည်ညွှန်းချက် ကိုလည်း ကြည့်ရှုပါ ။