AI智能推荐题库-试题通 AI智能整理导入题库-试题通
×
首页 题库中心 2025年HarmonyOS应用开发者基础认证题库 题目详情
CB1C4E87ED800001614117901380121E
2025年HarmonyOS应用开发者基础认证题库
526
单选题

【单选题】下列代码中,可以实现 Text 组件的文本装饰线在文本底部(下划线)的是

A
Text('This is the text').decoration({type: TextDecorationType.None, color: Color.Red }) .borderWidth(1).padding(10).margin(5)
B
Text('This is the text').decoration({type: TextDecorationType.Underline, color: Color.Red} ).borderWidth(1).padding(10).margin(5)
C
Text('This is the text').decoration({type: TextDecorationType.Overline, color: Color.Red }).borderWidth(1).padding(10).margin(5)
D
Text('This is the text').decoration({type: TextDecorationType.LineThrough, color: Color.Red}).borderWidth(1).padding(10).margin(5)

答案解析

正确答案:B

相关知识点:

Text组件下划线用TextDecorationType.Underline

题目纠错
2025年HarmonyOS应用开发者基础认证题库

扫码进入小程序
随时随地练习

关闭登录弹窗
专为自学备考人员打造
勾选图标
自助导入本地题库
勾选图标
多种刷题考试模式
勾选图标
本地离线答题搜题
勾选图标
扫码考试方便快捷
勾选图标
海量试题每日更新
波浪装饰图
欢迎登录试题通
可以使用以下方式扫码登陆
APP图标
使用APP登录
微信图标
使用微信登录
试题通小程序二维码
联系电话:
400-660-3606
试题通企业微信二维码