Java学习日志18.7.30

Java学习日志18.7.30

学习内容及代码

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <style type="text/css">
        .cc{
            margin: 0 auto;
            width: 800px;
            height: 800px;
            background-color: red;
        }
        .cc p{
            text-align: center;
            color: blue;
        }
    </style>
</head>
<body>
    <div class="cc">
        <p>
            <span id="content">;aoe823dj48q9;tw,;epcs</span>
        </p>
    </div>
    <hr>
    <select id="fs" onchange="changeSize()"></select>
    <script type="text/javascript">
        var initFsSelect = function(){
            var fshtml ="";
            for (var i = 1; i <=100; i++) {
                fshtml += "<option value='"+i+"px'>"+i+"px</option>";
            }
            document.getElementById("fs").innerHTML = fshtml;
        }
        var changeSize = function() {
        var fs = document.getElementById("fs").value;

        document.getElementById("content").style.fontSize = fs;
        }
        initFsSelect();
    </script>
</body>
</html>

课后学习过程

**1:30 - 5:30 :复习上课内容,练习书写代码
6:30 - 7:30 :休息
7:30 - 8:30 :练车
8:30 - 9:30 :再次复习浏览上课内容**

猜你喜欢

转载自blog.csdn.net/qq_41329519/article/details/81288750
今日推荐