Sto usando la procedura qui sotto per modificare CSS da JavaScript ma non sta dando alcun risultato.Bordo CSS in JavaScript
Qualcuno può controllare il codice e fammi sapere il metodo corretto. Ho bisogno di un bordo per il tavolo con raggio.
Questa è la mia struttura della tabella:
<table id="tt" width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="179" class="header_links">5<input name="input" class="lang_textbox" type="text" value="Search by keyword" /></td>
<td width="52" align="left"><img src="images/search_go.jpg" width="28" height="24" alt="go" /></td>
<td width="169" class="header_links"><a href="#">FAQs</a> | <a href="#">Sitemap</a> | <a href="#">Contact us</a></td>
</tr>
</table>
E sotto è il javascript che sto usando
document.getElementById('tt').style.borderRadius = '4em'; // w3c
document.getElementById('tt').style.MozBorderRadius = '4em'; // mozilla
document.getElementById('tt').style.border = '4em'; // mozilla
molto più discreto: aggiungi qualche classe CSS aggiuntiva al tuo elemento invece di modificare direttamente gli stili. – dfsq