CSS text-decoration-line 属性
- ទៅមុខ text-decoration-color
- ទៅចុង text-decoration-style
Paglilinaw at Paggamit
Ang text-decoration-line property ay nagtatakda kung anong uri ng text-decoration na gagamitin (gabay, pagpipigil, sumusulong).
Mga tagubilin:Samantala, mangyaring basahin ang text-decoration property, na ito ay isang maikling property ng text-decoration-line, text-decoration-style at text-decoration-color.
ការកត់សម្គាល់:អ្នកអាចចងជាមួយគ្នាជាច្រើនតំលៃ ដូច underline និង overline ដើម្បីបង្ហាញខ្សែសញ្ញានៅខាងលើ និងខាងក្រោមអត្ថប្រយោជន៍
សូមអានបន្ថែម:
ការបង្រៀន CSS:CSS 文本
សៀវភៅប្រឹក្សាអត្ថប្រយោជន៍ HTML DOM:textDecorationLine អត្ថប្រយោជន៍
ឧទាហាន
កំណត់អត្ថប្រយោជន៍ text-decoration ខ្សែសញ្ញាផ្សេងៗ
div.a { text-decoration-line: overline; } div.b { text-decoration-line: underline; } div.c { text-decoration-line: line-through; } div.d { text-decoration-line: overline underline; }
ច្បាប់ CSS
text-decoration-line: none|underline|overline|line-through|initial|inherit;
តំរូវការអត្ថប្រយោជន៍
តំលៃ | ការពន្យល់ |
---|---|
none | តំរូវការដើមដែលបានកំណត់។ កំណត់អត្ថប្រយោជន៍ text-decoration គ្មានខ្សែសញ្ញា |
underline | កំណត់អត្ថប្រយោជន៍ដើម្បីបង្ហាញខ្សែសញ្ញានៅខាងក្រោមអត្ថប្រយោជន៍ |
overline | កំណត់អត្ថប្រយោជន៍ដើម្បីបង្ហាញខ្សែសញ្ញានៅលើអត្ថប្រយោជន៍ |
line-through | កំណត់អត្ថប្រយោជន៍ដើម្បីបង្ហាញខ្សែសញ្ញាបង្ហាញអត្ថប្រយោជន៍ពាក់ព័ន្ធ |
initial | កំណត់អត្ថប្រយោជន៍នេះទៅជាតំរូវការដើម។ សូមអាន: initial。 |
inherit | ការប្រើប្រាស់អត្ថប្រយោជន៍នេះពីសញ្ញាប័ណ្ណរបស់អត្ថប្រយោជន៍ដែលជាកំណើត។ សូមអាន: inherit。 |
ពត៌មានបច្ចេកទេស
តំរូវការដើមដែលបានកំណត់: | none |
---|---|
ការកត់សម្គាល់: | ទោះបីជាមិនទេ |
ការផលិតរីករាលដាល: | មិនគាំទ្រ។ សូមអាន:អត្ថប្រយោជន៍ទាក់ទងនឹងការរីករាលដាល。 |
កំណែទម្រង់: | CSS3 |
ច្បាប់ JavaScript: | object.style.textDecorationLine="overline" |
ការគាំទ្រនៃកម្មវិធីប្រើប្រាស់
ចំនុចចំណាត់គូរនៅក្នុងតារាងបង្ហាញថាជាកំណើតប័ណ្ណសារដែលគាំទ្រពិពណ៌ន៍នេះ។
ចំនុចចំណាត់គូរជាលើកដំបូងដែលប្រើប្រាស់មុខសញ្ញា ដូច -webkit- ឬ -moz-。
Chrome | IE / Edge | Firefox | Safari | Opera |
---|---|---|---|---|
57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 7.1 -webkit- |
44.0 |
- ទៅមុខ text-decoration-color
- ទៅចុង text-decoration-style