html placehoder 居中,input placeholder设置 text-align: center 失效

input placeholder设置 text-align: center 失效Input placeholder setting text-align: center is invalidinput placeholder设置 text-align: center 失效

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本 小程序 Bug input 微信iOS客户端 8.0.2 2.16.0

在 IOS 中给 input placeholder 设置样式颜色能生效, 但是居中没用, 安卓没问题, 这是不是一个 Bug

Framework type problem type API / component name terminal type wechat version basic library version applet bug input wechat IOS client 8.0.2 2.16.0 setting style and color to input placeholder in IOS can take effect, but it's useless to center. Android has no problem. Is this a bug

回答:

黑夜白昼:

8d78559e4fbd3887db446f113c3e235b.png

我这里可以

黑夜白昼:input {

text-align: center;

}

小胡:这个问题我看到了, 只有设置 input 自身为 text-alian: center; IOS 才有效, 但这个不是针对 placeholder, 设置后输入框的内容也居中了, 我的想法是只对 placeholder 有效, 正常输入还是在左边

张有釜:

placeholder-style属性吗? placeholder是内容文字本身

小胡:设置 placeholder-class 设置 style 也不行 居中不了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值