Skip to navigation Skip to content
SKILL.NULL
  • 首页
  • 前端
    • Browser Compatibility
    • HTML&CSS
    • JavaScript
    • Vue
    • React
  • 后端
    • Python
    • Go
    • NodeJS
    • PHP
  • 数据
    • MySql
  • 其他
    • 设计模式
    • Webpack
    • 微信小程序
    • 微信
    • SVG
    • Git
  • 夏如眷
SKILL.NULL

日期:2016年9月13日

让textarea完全显示文章并且不滚动、不可拖拽、不可编辑

1
2
3
4
5
6
7
8
9
10
11
textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  overflow: hidden;
  padding-bottom: 100%;
  background-color: inherit;
}
 
<textarea readonly="readonly"></textarea>

2018-12-03by SKILLNULL HTML&CSS 阅读(8020)评论(0)
东风杨柳岸,岁月如烟
2016年九月
一 二 三 四 五 六 日
« 8月   10月 »
 1234
567891011
12131415161718
19202122232425
2627282930  
github    cnblogs   
◉ 常用JS方法库    ◉ JS拖拽    ◉ 一键获取设备信息   
标签
Ajax Animation bodymovin BootStrap BrowserCompatibility CentOS Cookie DataBase echarts ExtractTextPlugin FileSaver Git HTML&CSS JavaScript JS异步编程 JS深度比较两个对象 lottie NodeJS npm Other PhantomJS PHP PropTypes puppeteer React react-router Redux SEO shadowsocks Shell sshpass superset VPN Vue Webpack 兼容问题 内存泄露 前端错误监控 夏如眷 微信 微信小程序 正则 爬虫 笛卡尔心形线 设计模式
©2025  李亚飞  皖ICP备15024198号