How to make the table a fixed size, the outside part of the display as an ellipsis _ experience Exchange

Source: Internet
Author: User
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" > <HTML> <HEAD> <TITLE> New Document </ title> <style> ctl{table-layout:fixed}. CTL Td{text-overflow:ellipsis;overflow:hidden;white-space:nowr AP;PADDING:2PX} </style> </HEAD> <BODY> <table cellspacing= "0" cellpadding= "1" width= "100%" class = "ctl" border=1> <colgroup> <col> <col width= "Max" > </colgroup> <tBody> &lt ;tr> <td> Title Enlargement The scholar-bureaucrat of the Assistant professor saw it as though it was hard but the 16th plane immediately title enlargement the scholar-bureaucrat of associate professor See looks like the law is hard but 16th plane immediately </td> <td> (1/1) & lt;/td> </tr> <tr> <td> Title enlargement The scholar-bureaucrat of the assistant professor see looks like a hard but 16th plane immediately title enlargement of the professor of the scholar-bureaucrat see looks like the law is hard but 16th plane immediately &lt ;/td> <td> (1/1) </td> </tr> <tr> <td> Title enlargement The scholar-bureaucrat of associate professor See looks like the law is hard but the 16th plane is immediately marked The scholar-bureaucrat of enlarged Associate professor See looks like the law is hard but the 16th plane immediately </td> <td> (1/1) </td> </tr> <tr> <td&gt Title enlargement The scholar-bureaucrat of the Assistant professor saw it as though it was hard butIt's the 16th plane. The title of the enlarged Associate professor of the scholar-bureaucrat sees it as hard but 16th plane immediately </td> <td> (1/1) </td> </tr> </tBody> < /table> </BODY> </HTML>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
If it is in or
  • What do they do inside?
    <textarea id="runcode6453"><! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" > <HTML> <HEAD> <TITLE> New Document </ Title> <style>. ctl {text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:2px} </style > </HEAD> <BODY> Title Enlargement Associate Professor of scholar-bureaucrat see looks like the law is hard but the 16th plane immediately title enlargement of the professor's scholar-bureaucrat see looks like the law hard but 16th plane immediately <ul class= "CTL" Style= "width:234;" ><li> Title enlargement The scholar-bureaucrat of the Assistant professor saw it as though it was hard but the 16th plane immediately title enlargement of the professor's scholar-bureaucrat see looks like a hard but 16th plane immediately </li><li> Title enlargement The scholar-bureaucrat of the Associate professor See looks like the law is hard but the 16th plane immediately title enlargement Associate Professor's Scholar see looks like the law is hard but 16th plane immediately </li></ul> </BODY></textarea>
    [Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]

    text-overflow:ellipsis;
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.