当前位置:网站首页>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 .
边栏推荐
- Squid agent
- 懒加载,预加载
- Learn a trick to use MySQL functions to realize data desensitization
- Docker安装Mysql、Redis
- 节流和防抖
- Detailed steps for installing mysql-5.6.16 64 bit green version
- End of 2021 graphics of Shandong University
- About the principle and code implementation of Siou (review IOU, giou, Diou, CIO)
- ijkPlayer中的错误码
- Jenkins different styles of project construction
猜你喜欢

FPGA面试题目笔记(二)——同步异步D触发器、静动态时序分析、分频设计、Retiming
![Chapter 2 of machine learning [series] logistic regression model](/img/8f/b4c302c0309f5c91c7a40e682f9269.jpg)
Chapter 2 of machine learning [series] logistic regression model

Review Servlet

Metasploitabile2 target learning

FPGA interview notes (IV) -- sequence detector, gray code in cross clock domain, ping-pong operation, static and dynamic loss reduction, fixed-point lossless error, recovery time and removal time

Teach you to write word formula

Fix the problem that the right mouse button does not have a vscode shortcut

MongoDB安装

Examinelistactivity of Shandong University project training

A multi classification model suitable for discrete value classification -- softmax regression
随机推荐
Differences between FindIndex and indexof
The classification effect of converting video classification data set to picture classification data set on vgg16
538.把二叉搜索树转换成累加树
021-MongoDB数据库从入门到放弃
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
Sqli-labs less-01
关于parseInt()
个人常用软件及浏览器插件分享
About the principle and code implementation of Siou (review IOU, giou, Diou, CIO)
022 basic introduction to redis database 0
Invert an array with for
Jenkins user rights management
572. 另一个树的子树
不引入第三个变量,交换两个值
Jenkins voucher management
ijkPlayer中的错误码
Use of constructors
Using idea to add, delete, modify and query database
Why don't we have our own programming language?
MongoDB安装