有的时候可能会有这样的需求,一个竖直的输入框,输入信息,文字也是从上到下排列;

(但是在移动端或用轮播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>

最新文章

  1. 《BuildingMachineLearningSystemsWithPython》学习笔记
  2. ckedit 图片上传 php
  3. faad解码aac
  4. android imageButton 点击按钮前中后,按钮颜色的变化
  5. Windows Server 2012下安装Hyper-V虚拟机
  6. linux工程管理工具make入门
  7. php中curl的使用(一)
  8. linux下tomcat作为daemon进程运行
  9. java设计模式---三种工厂模式
  10. Active information gathering-services enumeration
  11. PowerDesigner 15的Table表视图的列显示Code
  12. 【转】【测试用例设计】WEB通用测试用例
  13. JS  实现九宫格算法
  14. 没有插件的sublime编辑器是没有灵魂的
  15. mysql-binlog_cache_size
  16. [原]openstack-kilo--issue(一) httpd汇总
  17. Rails: could not connect to database postgres: FATAL: Peer authentication failed for user &quot;username&quot;
  18. 遍历GroupBox上的所有的textbox
  19. zabbix-agent报错:zabbix_agentd [5922]: cannot open log: cannot create semaphore set: [28] No space left on device
  20. redis配置密码认证,通过密码可以进行连接

热门文章

  1. Mysql数据库优化(1)
  2. nvcatmysql安装注册流程以及远程登陆配置步骤
  3. S3C2440—3.用点亮LED来熟悉裸机开发的详细流程
  4. 题解 Prime
  5. leaflet antvPath示例
  6. C# 排序列表(SortedList)
  7. 连接共享打印机失败错误代码0x80070035
  8. ProjectEuler 007题
  9. docker学习之network:初识网络配置
  10. call bind apply的区别