Home >Web Front-end >HTML Tutorial >Please tell me about css truncation! _html/css_WEB-ITnose
css truncation
Use .test{display: inline-block;width: 200px;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis The ;} method creates a truncation effect and can be tested on a separate page. However, after being placed in the project, the controlled text has no truncation effect and is always on the left. As long as the code is the same, the dtd of the page is the same, and the browser is the same, it should be OK
Thank you moderator for the advice! I feel that it may be affected by the referenced style sheet, but I haven't found the specific style that causes it!
Problem solved, posted!