ដាក់ Style លើ Button មានរូបភាពក្នុង CSS
បង្កើត Form មិនមែនជារឿងពិបាកនោះឡើយ ប៉ុន្តែដើម្បីឲ្យ Form នោះមានភាពទាក់ទាញ លោកអ្នកចាំបាច់ត្រូវបន្ថែម Style ទៅលើវា ។ កាលពីអត្ថបទមុនៗ សំបុកអាយធី បានលើកពីការប្រើប្រាស់ Style នានារួចហើយ ។
ជំហានទី១ សូមបង្កើត File HTML ជាលក្ខណៈ Form
<form action=”">
<label for=”name”>Name: </label> <input type=”text” id=”name” />
<label for=”password”>Password: </label> <input type=”password” id=”password” />
<label> </label> <input type=”submit” value=”Submit” /> <input type=”submit” value=”Cancel” />
</form>

រួចបន្ថែម Style ដោយភ្ជាប់រូបភាព សម្រាប់ដាក់លើប៊ូតុង នៅពេល MouseOver
CSS
ជំហានទី១ សូមបង្កើត File HTML ជាលក្ខណៈ Form
<form action=”">
<label for=”name”>Name: </label> <input type=”text” id=”name” />
<label for=”password”>Password: </label> <input type=”password” id=”password” />
<label> </label> <input type=”submit” value=”Submit” /> <input type=”submit” value=”Cancel” />
</form>
រួចបន្ថែម Style ដោយភ្ជាប់រូបភាព សម្រាប់ដាក់លើប៊ូតុង នៅពេល MouseOver
Post a Comment