Descendant Combinator (space)
W3C CSS Snapshot 2026
Space တစ်ခုခြားရင် ရှေ့ element ရဲ့ အထဲမှာ ရှိတဲ့ element တွေကို အဆင့်ဘယ်လောက်နက်နက် ရွေးပါတယ်။
Code စမ်းလို့ရတဲ့ သင်ခန်းစာ ဖွင့်ရန်
ဒီစာမျက်နှာမှာ
ရေးပုံနဲ့ သုံးလို့ရတဲ့ တန်ဖိုးများ
| တန်ဖိုး သို့မဟုတ် ရေးပုံ | အလုပ်လုပ်ပုံ |
|---|---|
section p | <section> အတွင်း အဆင့်တိုင်းက <p> ကို ရွေးပါတယ်။ |
နမူနာကို စမ်းကြည့်ပါ
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Descendant Combinator (space)</title>
<style>
section p { color: teal; }
</style>
</head>
<body>
<section>
<p>Direct child</p>
<div><p>Nested paragraph</p></div>
</section>
<p>Outside the section</p>
</body>
</html>
စမ်းကြည့်ရင် ဘာဖြစ်မလဲ Section ထဲက စာပိုဒ်နှစ်ခုလုံး စိမ်းပြာရောင် ဖြစ်ပါမယ်။