当前位置:网站首页>小程序 van-cell 换行能左对齐问题
小程序 van-cell 换行能左对齐问题
2022-08-02 03:22:00 【suzhiwei_boke】
van-cell 的value 属性 默认是右对齐,这时候我们只想显示信息的时候就可以运用父元素用右对齐,子元素用行内块元素,然后左对齐
/* 解决多行能出现向左对齐的情况 */
.van-cell__value>text{
display: inline-block;
text-align: left;
word-break: break-all; //换行能显示全部字符
}
<van-cell title="活动标题" title-width="7em">
<text>{
{mainData.title}}</text>
</van-cell>
边栏推荐
- mysql中exists的用法详解
- 「PHP基础知识」PHP中对象的使用
- Phospholipid-polyethylene glycol-targeted neovascularization targeting peptide APRPG, DSPE-PEG-APRPG
- 【装机】老毛桃的安装及使用
- IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boo
- [Learning Records of Boxue Valley] Super summary, share with heart | Software Testing Interface Testing Basics
- 化学试剂磷脂-聚乙二醇-羟基,DSPE-PEG-OH,DSPE-PEG-Hydroxyl,MW:5000
- mysql卸载详细教程
- 【面试】失败的一次面试
- np.unique()函数
猜你喜欢
@Autowired与@Resource区别
querystring模块
磷脂-聚乙二醇-醛基 DSPE-PEG-Aldehyde DSPE-PEG-CHO MW:5000
@Accessors 注解详解
MySQL两阶段提交串讲
2022年比若依更香的开源项目
API 低代码开发:接口大师,一套开发、管理和提供接口的产品框架
ThunderBirde无法登录问题、pycharm调试一直收集数据、RuntimeError: CUDA error: device-side assert triggered等疑难杂症解决
磷脂-聚乙二醇-酰肼,DSPE-PEG-Hydrazide,DSPE-PEG-HZ,MW:5000
MySQL中JOIN的用法
随机推荐
[Mianjing] Mihayou data development on one side and two sides
getattr()函数解析
Basic usage of Monaco Editor
AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from ‘/yolov5-5.0/models/commo
磷脂-聚乙二醇-靶向新生血管靶向肽APRPG,DSPE-PEG-APRPG
Cut out web icons through PS 2021
通过PS 2021 将网页图标抠下来
Mysql8创建用户以及赋权操作
DSPE-PEG-PDP,DSPE-PEG-OPSS,磷脂-聚乙二醇-巯基吡啶供应,MW:5000
ModuleNotFoundError No module named 'xxx' possible solutions
@ApiModel 和 @ApiModelProperty
【 application 】 life many years of operations, what turned scored 12 k + annual bonus salary?
3 minutes to take you to understand WeChat applet development
basic operator
JJWT tool class
MySQL两阶段提交串讲
MySQL占用CPU过高,排查原因及解决的多种方式法
[详解C语言]一文带你玩转C语言小游戏---三子棋
MySQL分区表详解
[详解C语言]一文带你玩转C语言小游戏---扫雷