How to turn the part of the TD text that is too long into an ellipsis display

Updated on technology 2024-05-25
15 answers
  1. Anonymous users2024-02-11

    The following describes how to turn the part of the text that is too long into an ellipsis:

    The text-overflow tag is required to set the text to be too long, which is set to ellipsis, which means that the text beyond the text is ellipsis;

    If the whole is too long, you need to use the white-space tag, which is set to nowrap, which means that the text does not wrap;

    At the same time, you need to set the excess part of the overall tag to not be displayed, and the setting method is: overflow: hidden;

    The overall setting label is: td

  2. Anonymous users2024-02-10

    Do you use responsive bootstrap, and if you do! Please copy the following directly.

    table{

    table-layout:fixed;

    table tbody tr td{

    overflow: hidden;

    text-overflow:ellipsis;

    white-space: nowrap;

  3. Anonymous users2024-02-09

    "> test strings, test strings, strings, strings.

  4. Anonymous users2024-02-08

    If it's a block element, let's add these lines to the CSS block (this is a multi-line text hiding with ellipses, which is more common).

    overflow: hidden;*auto-hide text* text-overflow: ellipsis; Add an ellipsis after the text is hidden

    display: -webkit-box;

    webkit-line-clamp:2;*the number of rows you want to display* -webkit-box-orient: vertical;

  5. Anonymous users2024-02-07

    The need to hide and show the ellipsis is more than the text needs to be used a lot in work, and I think many people have encountered it, and there are two solutions to this.

    One is to use the program to intercept the length of the character.,This is actually okay.,The second is to do it with a style.,Here is a main introduction to how to do it with a style.,I don't have much to say.,Go directly to **.,CSS styles are as follows:

    css]css1

    css2/css]

    html** is as follows:

    html] web front-end development Focus on front-end design and web user experience web front-end development Focus on front-end design and web user experience [html].

    css1css2

    Web Front-end Development Focus on Front-end Design and Web User ExperienceWeb Front-end Development Focus on Front-end Design and Web User Experience.

  6. Anonymous users2024-02-06

    First, set the label of the wrapping text element as a blocky element, then add overflow:hidden after determining the width;

    text-overflow:ellipsis;

    white-space:nowrap;

  7. Anonymous users2024-02-05

    Set its text-overflow to ellipsis, force no line break, and its width. Such as:

    This is the inner response, this is the content, this is the content, this is the content, this is the content, this is the content.

  8. Anonymous users2024-02-04

    Add. Such ellipsis is usually made by programmers, and the foreground of the page is hidden by styling the height control.

    If you have to use styles to implement it, it's okay, make one. ** is used when the background is displayed from the right side. td

  9. Anonymous users2024-02-03

    Text beyond the need to hide and show the ellipsis for this.

    It has to be used a lot of times in the work.,I think many people have encountered it.,There are two solutions to this, one is to use the program to intercept the length of the character.,This is actually okay.,The second is to use the style to do it.,Here is the main introduction to how to do it with the style.,I don't say much about it.,Go directly to the ** bar.,CSS styles are as follows:

    css]css1

    css2/css]

    html** is as follows:

    html] web front-end development Focus on front-end design and web user experience web front-end development Focus on front-end design and web user experience [html].

    css1

  10. Anonymous users2024-02-02

    If it's a block element, let's add these lines to the CSS block (this is a multi-line text hiding with ellipses, which is more common).

    overflow: hidden;*auto-hide text* text-overflow: ellipsis; Add an ellipsis after the text is hidden

    display: -webkit-box;

    webkit-line-clamp:2;The number of rows you want to display

    webkit-box-orient: vertical;

  11. Anonymous users2024-02-01

    The need to hide and show the ellipsis is used many times in the work, and there are two ways to do it: one is to use the program to cut the length of the character, and the other is to use the style to do it.

    The CSS style is as follows:

    css]css1

    css2/css]

    html** is as follows:

    html] web front-end development Focus on front-end design and web user experience web front-end development Focus on front-end design and web user experience [html].

    css1css2

    Web Front-end Development Focus on Front-end Design and Web User ExperienceWeb Front-end Development Focus on Front-end Design and Web User Experience.

  12. Anonymous users2024-01-31

    The method and detailed operation steps are as follows:

    1. The first step is to open the HTML user and create a new HTML file, for example, see the figure below, and transfer it to the following steps.

    2. In the second step, after completing the above steps, in the tag in , enter css**, see the figure below, and go to the steps below.

    3. In the third step, after performing the above operations, the browser runs the page.

    If the text is more than 2 lines at this time, the extra part will automatically appear as an ellipsis, see the image below. In this way, the problem is solved.

  13. Anonymous users2024-01-30

    Set its width and.

    baitext-overflow for ellipsis and force du not to wrap, e.g. zhi:

    This is the daop tag.

    This answer is a p tag, this is a p tag, this is a p tag, this is a p tag.

  14. Anonymous users2024-01-29

    It should be processed with jquery**.

  15. Anonymous users2024-01-28

    Set their widths zhi and text-overflow to ellipsis as well as dao to force no line breaks, such as.

    Specialized: This is the P tag.

    Genus: This is the p-tag, this is the p-tag, this is the p-tag, this is the p-tag.

Related questions
11 answers2024-05-25

You can convert audio to text through tools such as NetEase Visible Workbench or iFLYTEK speech-to-text. If it is a short audio, it can be converted into text directly through the voice input in the mobile phone input method, and if it is a long audio, the audio can be converted into text with the help of the above tools.

11 answers2024-05-25

If you want to use free antivirus software, it is recommended that you use the German "Little Red Umbrella" antivirus software, the antivirus software is completely free, occupies small resources, and has an amazing high detection rate, which can be comparable to Kaspersky. The only fly in the ointment is that it is only available in German and English, but there are detailed ways to use it online, so you can try it.

11 answers2024-05-25

1. First save the audio file you need to convert in your phone, and then find the following recording to text tool in the application market. Open the home page of the tool is a voice recognition page, where there are recording recognition and file recognition, click on file recognition here. >>>More

11 answers2024-05-25

Voice changer, and you can find a man who talks like a woman. I really need your score too much to ask my questions, eh, you're kind enough to give it to me.

8 answers2024-05-25

If you want plain flour to turn into cake flour.

can be with cornstarch. >>>More