当前位置:网站首页>Text overflow failure
Text overflow failure
2022-06-11 06:28:00 【Saucey_ six】
Use scenarios : use … Replace extra text
css Method
text-overflow: ellipsis;
overflow:hidden;
white-space: nowrap;
But it is not effective in the form !!!
If in css Method to add display:block And a fixed width ok!
display: block;
width: 100px;
text-overflow: ellipsis;
overflow:hidden;
white-space: nowrap;
Why is that ?
- In simple terms ,tr,td Both inline and block level elements .
- Because they can set their width and height , However, you cannot set its padding.
- We are using display:block After that, it is equivalent to converting row level elements into block level elements , And set the width for it .
- because overflow,text-overflow The use of is to truncate and hide the text or area relatively .
边栏推荐
- 572. 另一个树的子树
- CCS method of installing compiler
- Analyze the principle of configuration center from the perspective of Nacos client
- The classification effect of converting video classification data set to picture classification data set on vgg16
- Autojs, read one line, delete one line, and stop scripts other than your own
- Basic usage of MySQL
- 学好C语言从关键字开始
- Squid agent
- 解决ffmpeg獲取AAC音頻文件duration不准
- Count the time-consuming duration of an operation (function)
猜你喜欢

Shandong University machine learning experiment 7 pca+ SVM face recognition

ERROR 1215 (HY000): Cannot add foreign key constraint

Convert multiple pictures into one NPY file storage

Stock K-line drawing

Record the first data preprocessing process

Résoudre le problème de la durée inexacte du fichier audio AAC obtenu par ffmpeg

Analyze the principle of configuration center from the perspective of Nacos client

FPGA interview notes (III) -- implementation of handshake signal synchronization in cross clock domain, arbitrary frequency division, binary conversion, RAM memory, original code inversion and complem

563. 二叉树的坡度

Communication between different VLANs
随机推荐
山东大学项目实训之examineListActivity
Scripy web crawler series tutorials (I) | construction of scripy crawler framework development environment
FPGA interview topic notes (I) - FPGA development process, metastable state and competitive risk, build and hold time, asynchronous FIFO depth, etc
Alias the path with the help of craco
统计某次操作(函数)耗时时长
Servlet
Notes sur les questions d'entrevue de la FPGA (IV) - - détecteur de séquence, Code gris dans le domaine de l'horloge croisée, opération de ping - pong, réduction de la perte statique et dynamique, err
arguments......
Growth Diary 01
Use of constructors
Fix the problem that the right mouse button does not have a vscode shortcut
Why is it that the live video of the devices connected to easygbs suddenly cannot be played? Insufficient database read / write
Analyze the principle of configuration center from the perspective of Nacos client
Mediaextractor source code analysis of multimedia framework analysis (1)
Eureka集群搭建
Count the time-consuming duration of an operation (function)
QT socket设置连接超时时间
A collection of problems on improving working frequency and reducing power consumption in FPGA design
Solve the problem that ffmpeg obtains aac audio files with incorrect duration
个人常用软件及浏览器插件分享