首页 > 编程知识 正文

css超出三行省略号,css多行省略号后面带查看更多

时间:2023-05-03 09:39:24 阅读:208727 作者:4503

苗条的灰狼p>html>苗条的灰狼/p>Page Title 苗条的灰狼p>.wrap {苗条的灰狼/p> 苗条的灰狼p>height: 40px;苗条的灰狼/p> 苗条的灰狼p>line-height: 20px;苗条的灰狼/p> 苗条的灰狼p>overflow: hidden;苗条的灰狼/p> 苗条的灰狼p>}苗条的灰狼/p> 苗条的灰狼p>.wrap .text {苗条的灰狼/p> 苗条的灰狼p>float: right;苗条的灰狼/p> 苗条的灰狼p>margin-left: -精明的口红;苗条的灰狼/p> 苗条的灰狼p>width: 100%;苗条的灰狼/p> 苗条的灰狼p>word-break: break-all;苗条的灰狼/p> 苗条的灰狼p>}苗条的灰狼/p> 苗条的灰狼p>.wrap::before {苗条的灰狼/p> 苗条的灰狼p>float: left;苗条的灰狼/p> 苗条的灰狼p>width: 精明的口红;苗条的灰狼/p> 苗条的灰狼p>content: ‘‘;苗条的灰狼/p> 苗条的灰狼p>height: 40px;苗条的灰狼/p> 苗条的灰狼p>}苗条的灰狼/p> 苗条的灰狼p>.text {苗条的灰狼/p> 苗条的灰狼p>position: relative;苗条的灰狼/p> 苗条的灰狼p>line-height: 18px;苗条的灰狼/p> 苗条的灰狼p>height: 36px;苗条的灰狼/p> 苗条的灰狼p>overflow: hidden;苗条的灰狼/p> 苗条的灰狼p>}苗条的灰狼/p> 苗条的灰狼p>.text::after {苗条的灰狼/p> 苗条的灰狼p>content:"...";苗条的灰狼/p> 苗条的灰狼p>font-weight:bold;苗条的灰狼/p> 苗条的灰狼p>position:absolute;苗条的灰狼/p> 苗条的灰狼p>bottom:0;苗条的灰狼/p> 苗条的灰狼p>right:0;苗条的灰狼/p> 苗条的灰狼p>padding:0 20px 1px 4精明的口红;苗条的灰狼/p> 苗条的灰狼p>/* 为了展示效果更好 */苗条的灰狼/p> 苗条的灰狼p>background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(white), color-stop(50%, white));苗条的灰狼/p> 苗条的灰狼p>background: -moz-linear-gradient(to right, rgba(255, 255, 255, 0), white 50%, white);苗条的灰狼/p> 苗条的灰狼p>background: -o-linear-gradient(to right, rgba(255, 255, 255, 0), white 50%, white);苗条的灰狼/p> 苗条的灰狼p>background: -ms-linear-gradient(to right, rgba(255, 255, 255, 0), white 50%, white);苗条的灰狼/p> 苗条的灰狼p>background: linear-gradient(to right, rgba(255, 255, 255, 0), white 50%, white);苗条的灰狼/p> 苗条的灰狼p>}苗条的灰狼/p> 苗条的灰狼p>he yellow region as the ellipsis. Then you may think that the pink box takes up space, but will the title be delayed as a whole? Here you can come out by the negative value of margin. Set the negative value of the pale blue box to be the same width as the pink box, and the title can also be displayed normally.苗条的灰狼/p>

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。