效果图![](https://i-blog.csdnimg.cn/direct/26891b031c654f6eb915acd0f71fbfeb.png)
代码
@Entry
@Component
struct Index {
@State message: string = '今日头条新闻'
build() {
Column({space: 3}){
Text('学鸿蒙,就来xxx~')
.width('100%')
.fontSize(26)
.fontWeight(FontWeight.Bold)
Row({space: 10}){
Text('置顶')
.fontColor(Color.Red)
Text('新华社')
.fontColor(Color.Grey)
Text('4680评论')
.fontColor(Color.Gray)
}
.width('100%')
}
.padding(10)
.width('100%')
}
}