模拟智能在线客服

原创 2018-10-25 16:50:06 550
摘要:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>模拟智能在线客服</title><style>li{list-style: none;}        div:nth-child(1) {&n

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>

模拟智能在线客服

</title>

<style>

li{

list-style: none;

}

        div:nth-child(1) {

         width: 450px;

         height: 650px;

         background-color: lightskyblue;

         margin: 30px auto;

         color: #333;

         box-shadow: 2px 2px 2px #888888;

        }

        h2 {

         text-align: center;

         margin-bottom: -10px;

        }

        div:nth-child(2) {

            width: 400px;

            height: 500px;

            border: 4px double green;

            background-color: #efefef;

            margin: 20px auto 10px;

        }

        ul {

         line-height: 2em;

         overflow: hidden;

         padding: 15px;

        }

        table {

         width: 90%;

         height: 80px;

         margin: auto;

        }

        textarea {

         border: none;

         resize: none;

         background-color: lightyellow;

        }

        button {

         width: 60px;

         height: 40px;

         color: #fff;

         background-color: seagreen;

         border: none;

        }

        button:hover {

         cursor: pointer;

         background-color: orange;

        }

</style>

</head>

<body>

<div>

        <h2>在线客服</h2>

        <div>

            <ul>

                <li></li>

            </ul>

        </div>


<table>

        <tr>

            <td><textarea name="text" cols="50" rows="4"></textarea></td>

            <td><button type="button">发送</button></td>

        </tr>

</table>

</div>

<script>

        var btn = document.getElenmentsByTagName('button')[0];

        var text = document.getElenmentsByName('text')[0];

        var list = document.getElenmentsByTagName('ul')[0];

        var sum = 0;

</script>

</body>

</html>


发布手记

热门词条