CSS အခြား

TEXT FORMATTING

အခြား အကျုံး ပြောင်းလဲ

This text is styled with some of the text formatting properties. The heading uses the text-align, text-transform, and color properties. The paragraph is indented, aligned, and the space between characters is specified. The underline is removed from this colored "Try it Yourself" link.

ဤ အခြား အကျုံး ကို အသုံးပြု ပြီး အစိတ်အစိတ် ကို စံပါး ကြောင်း ဖော်ပြသည်။ အချက်အလက် ကို အသုံးပြု ပြီး အခြား အကျုံး ကို စံပါး ကြောင်း ဖော်ပြသည်။ အခြား အကျုံး ကို အသုံးပြု ပြီး အစိတ်အစိတ် ကို စံပါး ကြောင်း ဖော်ပြသည်။“ကိုယ်စားပြု ကျင်းပခြင်း”ချွတ်ချွတ်ကာ လက်ဆုံး ပြန်လည်ပြောဆိုခြင်း

亲自试一试

အခြား အကျုံး အရောင်

color အခြား အကျုံး အစိတ်အစိတ် ကို အသုံးပြု ပြီး အခြား အကျုံး ကို စံပါး ကြောင်း ဖော်ပြသည်。

  • အရောင်အမည် - ဥပမ� "red"
  • ဟန်ဆီယံ ကိုယ်စားပြု - ဥပမာ "#ff0000"
  • RGB 值 - 比如 "rgb(255,0,0)"

查看 စတုတ္ထ ကွန်ုပ်စာ ပြင်ပ,以获取可能颜色值的完整列表。

页面的默认文本颜色是在 body 选择器中定义的。

实例

body {
  color: blue;
}
h1 {
  color: green;
}

亲自试一试

提示:对于 W3C compliant CSS:如果您定义了 color 属性,则还必须定义 background-color 属性。

文本颜色和背景色

在本例中,我们定义了 background-color 属性和 color 属性:

实例

body {
  background-color: lightgrey;
  color: blue;
}
h1 {
  background-color: black;
  color: white;
}

亲自试一试