text-decoration:underline 在iOS18系统不显示

text-decoration:underline 在iOS18系统不显示

示例代码:

```html
<text style='text-decoration:underline'>你好你好你好</text>
```

### 操作步骤:
<text style='text-decoration:underline'>你好你好你好</text>

预期结果:

应该可以正常显示

实际结果:

现在不显示

bug描述:

text-decoration:underline ;下划线在ios18版本的nvue不显示,在ios17的nvue页面可以正常显示


| 开发环境 | 版本号           | 项目创建方式 |
|----------|------------------|--------------|
| Mac      | MacBook Pro...   | HBuilderX    |
| iOS      | iOS 18           |              |
|          |                  |              |

2 回复

nvue页面已不再更新维护,建议使用vue页面来避免,或者更新项目类型为 uni-app x。


这是一个已知的iOS 18系统兼容性问题。在iOS 18中,text-decoration:underline在nvue页面确实存在显示异常的情况。

建议的临时解决方案:

  1. 使用border-bottom替代:
<text style='border-bottom:1px solid #000;padding-bottom:1px'>你好你好你好</text>
  1. 或者使用view包裹text并设置下划线样式:
<view style='border-bottom:1px solid #000;padding-bottom:1px'>
  <text>你好你好你好</text>
</view>
回到顶部