Javascript: super beautiful table: color background, Javascript tutorial
SCRIPT function Preview (obj) {var TestWin = open (''); TestWin.doc ument. write (obj. value);} function copyCode (obj) {var rng = document. body. createTextRange (); rng. moveToElementText (obj); rng. scrollIntoView (); rng. select (); rng.exe cCommand ("Copy"); rng. collapse (false);} function saveCode (obj) {var winname = window. open ('', '_ blank', 'top = 10000 '); winname.doc ument. open ('text/html ', 'replace'); winname.doc ument. writeln (obj. value); winname.document.execcommand('saveas', '', 'homepage.yesky.com.htm '); winname. close ();} SCRIPT<Style type = "text/css"> <! -- Td {border: 4px dotted white; width: 99; height: 111 ;}></style> <center> <table cellspacing = "8" style = "border: 8px double red; "> <tr> <td style =" FILTER: progid: DXImageTransform. microsoft. gradient (startColorStr = '#000000', endColorStr = '# 4259b', gradientType = '0'); "> 1-1 </td> <td style =" FILTER: progid: DXImageTransform. microsoft. gradient (startColorStr = '# 4259b', endColorStr =' # 09fada ', gradientType = '0'); "> 1-2 </td> <td style =" FILTER: progid: DXImageTransform. microsoft. gradient (startColorStr = '# 09fada', endColorStr = '# fa1122', gradientType = '0'); "> 1-3 </td> </tr> </table>
Run codeCopy codeSave code