<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title></title>

    <style>

        table{

                                border: 3px solid #009FCC;   /*設定表格框線*/

                                border-collapse:collapse;/*使表格框(table)跟每一格(column)的框不重複*/

            background-color:#CCEEFF;

            color:#000088;

                     }

        td{

            padding-left:8px;

            padding-right:0px;

            width:55px;

                                border: 2px solid #008866;

                     }

 

    </style>

    <script>

        document.write("<table>")

        var i=1

        var k;

        while (i <= 9) {

            document.write("<td>")

            var j = 1;

            while (j <= 9) {

                k = i * j;

                document.write(i + "x" + j + "="+k+"<br>");

                j++;

            }

           

            document.write("</td>")

            i++;

           

        }

        document.write(" </table>")

    </script>

</head>

<body>

 

</body>

</html>




undefined

arrow
arrow
    全站熱搜

    乙方 發表在 痞客邦 留言(0) 人氣()