如何让textarea placeholder 文字垂直居中
2024-10-20 16:42:12
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
#textArea {
color: white;
height: 50px;
}
#textArea::-webkit-input-placeholder{
height: 50px;line-height: 50px
} /* 使用webkit内核的浏览器 */
#textArea:-moz-placeholder{
height: 50px;line-height: 50px
} /* Firefox版本4-18 */
#textArea::-moz-placeholder{
height: 50px;line-height: 50px
} /* Firefox版本19+ */
#textArea:-ms-input-placeholder{
height: 50px;line-height: 50px
}
</style>
</head>
<body>
<textarea id="textArea" name="" placeholder="请输入"></textarea>
</body>
</html>
效果图如下
最新文章
- phonegap3.5了结
- IsNullOrEmpty与IsNullOrWhiteSpace区别
- JavaScript高级程序设计之寄生组合式继承
- DIH处理包含回车符换行符html标签内容的文本
- MYSQL 日志文件路径错误 1067错误
- QT对话框中show和exec的区别
- NSTimer的精确度
- MVC(一)-MVC的基础认知
- Java注解(2)-注解处理器(运行时|RetentionPolicy.RUNTIME)
- ●BZOJ 4310 跳蚤
- 用jenkins创建节点
- 第四十篇-private,public,protected的区别
- js转盘大抽奖 自定义概率
- 【css3】画‘百分比圆’
- JAVA自学笔记13
- python基本数据类型之字符串(四)
- ESP32 environment ubuntu
- java 报错英文
- shell分析http日志
- @Primary 注解引出的问题
热门文章
- C++学习书籍推荐《More Exceptional C++》下载
- C语言学习书籍推荐《C程序设计语言(第2版•新版)》下载
- 微信小程序 键盘显示短信验证码
- CentOS下配置apache+gitweb
- LiteDB源码解析系列(2)数据库页详解
- Vue双向绑定原理及其实现
- PHP与ECMAScript_2_数据类型
- Docker 安装部署Sql Server
- JAVA-Spring AOP基础 - 代理设计模式
- 关于 &#39;<;a[^>;]+href=[";\&#39;](.*?)[";\&#39;]&#39; 的解释