| |

VerySource

 Forgot password?
 Register
Search
View: 635|Reply: 1

How to set the text in each cell in the GridView to not be displayed, for example, only 5 characters are displayed, and

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-22 18:00:01
| Show all posts |Read mode
Text-overflow is set
But it doesn't seem to work
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-22 10:30:01
| Show all posts
<table>
<tr>
<td>
<div style="overflow:hidden; white-space:nowrap; width:100px; text-overflow:ellipsis">Doggie Jiayuan19dog.com狗狗佳缘19dog.com狗狗佳缘19dog.com</div>
</td>
</tr>
</table>

------------
Note the <div> in <td>
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list