2023.10.17每日总结

 

复制代码
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生作业提交页面</title>

    <style type="text/css">
        .txt{
            border: none;
            outline: none;
            font-size: 16px;
            display: block;
            width: 100%;
            resize: none;
           line-height: 2;
            background: inherit;
        }
    </style>
    <template>
        <textarea @input="handleChange" class="txt" rows="1"></textarea>
    </template>
    <script>
        function handleChange(e) {
            const textarea=e.target();
            textarea.style.height=textarea.scrollHeight+'px';
        }
    </script>

</head>
<body>
<textarea class="txt" placeholder="回复内容"></textarea>
</body>
</html>
复制代码

 

posted @   超爱彬宝同学  阅读(11)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 提示词工程——AI应用必不可少的技术
· 字符编码:从基础到乱码解决
· 地球OL攻略 —— 某应届生求职总结
点击右上角即可分享
微信分享提示