使用Materialize CSS框架把textarea标签样式修改成可以拉的输入框形式!doctype htmlhtml class=no-js lang= head meta charset=utf-8 meta http-equiv=x-ua-compatible content=ie=edge title无涯工作室 ChatGpT VIP版title link
<p>将<textarea>标签改为<input>标签,并添加class="materialize-textarea"和data-length="120"属性,然后在外层添加一个<div>标签,并添加class="input-field"属性,最后在JavaScript中使用M.AutoInit()函数初始化。</p>
<div class="input-field col s12">
<input class="materialize-textarea" data-length="120" id="chat-gpt-input" type="text" placeholder="输入你的问题">
<label for="chat-gpt-input"></label>
</div>
<script>
M.AutoInit();
</script>
原文地址: https://www.cveoy.top/t/topic/c5fR 著作权归作者所有。请勿转载和采集!