padding
Bahasa Inggeris [ˈpædɪŋ] AS [ˈpædɪŋ] n pelapik;kanan
Inggeris [raɪt]
adv serta-merta, ke kanan, betul ; . kanan; kanan; tangan kanan untuk meluruskan; : hak Plural: hak Participle sekarang: righting Past tense: righted Past participle: righted
javascript paddingRight harta sintaks
Fungsi: Tetapkan pelapik elemen yang betul. Mentakrifkan ruang antara sempadan elemen dan kandungannya.
Sintaks: Object.style.paddingRight=auto|panjang|%
javascript paddingRight harta contoh
<html> <head> <style type="text/css"> p { border: thin dotted #FF0000; } </style> <script type="text/javascript"> function changePadding() { document.getElementById("p1").style.paddingRight="2cm"; } </script> </head> <body> <input type="button" onclick="changePadding()" value="Change right padding" /> <p id="p1">This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph.</p> </body> </html>
Run Instance »
Klik butang "Run Instance" untuk melihat instance dalam talian