IOS placeholder-style 无效问题
发布于 5 年前 作者 rma 18044 次浏览 来自 问答

<view class=‘item-h item-border-bottom’>

<text>主诉</text>

<textarea hidden=’{{hidetextflag}}’ bindblur=“blurMainSuit” auto-height value=’{{mainSuit}}’

placeholder-style=‘text-align: right;’ placeholder="{{mrType!=1?‘输入患者主诉’:’’}}" style=‘text-align: right;’ disabled="{{mrType==1?true:false}}" />

</view>

.item-h {

background: #fff;

display: flex;

flex-flow: row;

flex-direction: row;

align-items: center;

justify-content: space-between;

padding: 20rpx 20rpx;

font-size: 28rpx;

}

.item-border-bottom{

border-bottom: 1px solid;

border-color: #eaeaea;

}

Android 中是右对齐的,在iPhone里面一直都是左对齐。

3 回复

你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

设置placeholder-style=‘text-align: right;’

这个问题解决了吗?老机器iphone5s(系统版本10)也出现此问题,始终居左对齐

实机演示,没效果。虚拟机上是可以正常显示的。我用的是iPhone6

回到顶部