Wednesday, March 21, 2012

តើ CSS ជាអ្វី?

១. តើ CSS ជាអ្វី?


CSS មកពីពាក្យ Cascading Style Sheets ហើយ វាគឺជា Style Language មួយដែល ប្រើ សម្រាប់ រចនាបន្ថែមទៅលើLayout របស់ HTML។
ទំរង់ទូទៅ

Selector: គឺជា Tag របស់ HTML ដែលយើងចង់ដាក់ស្ទាយឲ្យ ហើយយើងក៏អាចបង្កើត Selector ដោយខ្លួនឯងបានដែរ។
Property: គឺជា Style Attribute ហើយវាមាន Value ដើម្បីកំណត់ផ្សេងៗ។
ឧទាហរណ៍
1.p
2.{  
3.font:14px Verdana, Geneva, sans-serif;
4.color:#096;
5.text-align:justify;  
6.}
ការប្រើប្រាស់ Comment នៅក្នុង CSS

Comment គឺយើងប្រើដើម្បីពិព័ណ៌នា Code របស់យើង ហើយវាផ្តល់ភាពងាយស្រួលដល់យើង នៅពេលដែលយើងធ្វើការកែប្រែកូដនៅពេលក្រោយ។
1./*This is a comment*/
2.p
3.{  
4.font:14px Verdana, Geneva, sans-serif;
5.color:#096;
6./*This is ab other comment*/
7.text-align:justify;
8.}

Welcome

Welcome to cambogroup.com new look!
Under contraction!