css property notes

1.calc

width : calc(100% - 50px); /* Note that there should be spaces before and after the operator. */
width : calc(100% - 2.5rem); /* Note that there should be spaces before and after the operator. */

2. If the field exceeds the length, an ellipsis is displayed

.aticle {
    text-overflow:ellipsis;
    overflow:hidden;
    white-space:nowrap;
}



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325494771&siteId=291194637