input竖直的输入框,文字从上到下排列
2024-08-30 17:02:27
有的时候可能会有这样的需求,一个竖直的输入框,输入信息,文字也是从上到下排列;
(但是在移动端或用轮播swiper时不起作用,可以用textarea代替input)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.abc{
width: 50px;
height: 400px;
border: 2px solid red;
box-sizing: border-box;
padding: 10px;
font-size: 30px;
-webkit-user-select:text;
}
</style>
</head>
<body>
<div class="abc" contenteditable=true>请输入你的名字</div>
</body>
</html>
最新文章
- 《BuildingMachineLearningSystemsWithPython》学习笔记
- ckedit 图片上传 php
- faad解码aac
- android imageButton 点击按钮前中后,按钮颜色的变化
- Windows Server 2012下安装Hyper-V虚拟机
- linux工程管理工具make入门
- php中curl的使用(一)
- linux下tomcat作为daemon进程运行
- java设计模式---三种工厂模式
- Active information gathering-services enumeration
- PowerDesigner 15的Table表视图的列显示Code
- 【转】【测试用例设计】WEB通用测试用例
- JS 实现九宫格算法
- 没有插件的sublime编辑器是没有灵魂的
- mysql-binlog_cache_size
- [原]openstack-kilo--issue(一) httpd汇总
- Rails: could not connect to database postgres: FATAL: Peer authentication failed for user ";username";
- 遍历GroupBox上的所有的textbox
- zabbix-agent报错:zabbix_agentd [5922]: cannot open log: cannot create semaphore set: [28] No space left on device
- redis配置密码认证,通过密码可以进行连接