javascript captionSide property
Hasil terjemahan:
caption
Bahasa Inggeris [ˈkæpʃn] AS [ˈkæpʃən] n; tajuk, kapsyen, sari kata; ) Tambahkan tajuk; tambahkan sari kata pada...Orang ketiga tunggal: kapsyen Plural: kapsyen Present participle: captioning Past tense: caption Past participle: captionedside
英[saɪd] 美n. sisi; di sebelah; : sides Plural: sides Participle hadir: sided Tegang masa lampau: sided Participle lampau: sided
javascript captionSide propertysintaks
Fungsi: Tetapkan kedudukan tajuk jadual.
Sintaks: Object.style.captionSide=atas|bawah|kiri|kanan
javascript captionSide propertycontoh
<html> <head> <style type="text/css"> caption { caption-side:bottom; } </style> <script type="text/javascript"> function moveCaption() { document.getElementById('myTable').style.captionSide="right" } </script> </head> <body> <table border="1" id="myTable"> <caption>This is a caption</caption> <tr> <td>100</td> <td>200</td> </tr> <tr> <td>300</td> <td>400</td> </tr> </table> <br /> <input type="button" onclick="moveCaption()" value="Move table caption"> </body> </html>
Run Instance »
Klik butang "Run Instance" untuk melihat instance dalam talian