跳至内容
菜单
此问题已终结
2 回复
2372 查看

Hi,

I'm using this code to display then product description:


    



I only want to display the first 100 or so letters followed by '...'. How is this done?

I found this code somewhere:


So, following that logic, I tried:



 I also tried replacing t-field with t-esc ... Anyone?

形象
丢弃
最佳答案
if you need to show .. after a certain width of a field in report add the following style give the max-width according to your need and if you don't need to show anything of the description after a certain width you can change overflow: ellipsis; to overflow: hidden;

style="max-width: px; display: inline-block; overflow: ellipsis; white-space: nowrap;"


形象
丢弃
最佳答案

Hi,

You can add a wrap style for it 

example 1)


style 1:


.name-adjust{

    width: 100px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


OR


style 2:


.name-adjust{

    overflow: visible !important;

    text-overflow: ellipsis !important;

    white-space: normal;

}

Regards

形象
丢弃
相关帖文 回复 查看 活动
0
4月 20
4180
1
8月 19
7020
1
10月 16
7192
1
2月 25
3059
3
12月 24
3378