当前位置:网站首页>[font multi line display ellipsis] and [dialog box] implementation ----- case explanation, executable code

[font multi line display ellipsis] and [dialog box] implementation ----- case explanation, executable code

2022-06-21 14:19:00 Yiyao Bingo

One 、 Font multi line display ellipsis

<style> .p3 {
       margin-top: 10px; color: rgb(129, 128, 128); -webkit-line-clamp: 2; /*【 Control the number of rows displayed here 】*/ -webkit-box-orient: vertical; text-overflow: ellipsis; overflow: hidden; word-break: break-all; display: -webkit-box; } </style>
<span class="p3"></span>

 Insert picture description here

Two 、 Dialog box

1、 Exhibition

image-20220204204156972
2、 Code

<div id="loginout">
                <p> Log out </p>
            </div>
#loginout {
    
  position: absolute;
  top: 70px;
  right: 0px;
  width: 100px;
  height: 130px;
  border: 4px solid rgb(61, 59, 59);
  text-align: center;
  &:before {
    
    content: "";
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid transparent;
    border-top-color: rgb(61, 59, 59);
    border-left-color: rgb(61, 59, 59); /* The border used here */
    position: absolute;
    top: -14px;
    left: 50%;
    margin-left: -5px;
    transform: rotate(45deg);
  }
}

3、 Look at the : White square rotate after Cover in On the rectangle

image-20220204210551623

原网站

版权声明
本文为[Yiyao Bingo]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202221426227883.html