css怎么让文本框中的输入的文字始终垂直居中
答案:1 悬赏:70 手机版
解决时间 2021-02-21 16:52
- 提问者网友:沦陷
- 2021-02-20 21:11
css怎么让文本框中的输入的文字始终垂直居中
最佳答案
- 五星知识达人网友:摆渡翁
- 2021-02-20 21:29
参考以下代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
input{
height:50px;
line-height: 50px;
text-align: center;
}
</style>
<title>垂直居中</title>
</head>
<body>
<input type="text" value="垂直居中" name="">
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
input{
height:50px;
line-height: 50px;
text-align: center;
}
</style>
<title>垂直居中</title>
</head>
<body>
<input type="text" value="垂直居中" name="">
</body>
</html>
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯