flex-shrink:0;
flex 丢失width 100%
用pos定位解决
就是不能用,不用就解决了
user-select: none;
overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
word-wrap:break-word; word-break: break-all;
.box{ width:100px; height:100px; background: red; border: 1px solid #ccc; position: fixed; top: 0; right: 0; bottom: 0; left: 0; margin: auto; }
.box{ width:100px; height:100px; background: red; border: 1px solid #ccc; transform: translate(-50%, -50%); position: absolute; top: 50%; left: 50%; }
.parent { height:600px; display: flex; align-items:center; justify-content:center; } .box{ width:100px; height:100px; background: red; border: 1px solid #ccc; }
.box{ width: 600px; height: 600px; background: red; border: 1px solid #ccc;} .box span{ font-size: 32px; line-height: 32px; display: inline-block;} .box{ transform: scale(0.5,0.5); transform-origin: 0 0;}
text-size-adjust: none;