Just use a one-cell table inside the div! Just set the cell and table height and with to 100% and you can use the vertical-align. A one-cell table inside the ... ... <看更多>
Search
Search
Just use a one-cell table inside the div! Just set the cell and table height and with to 100% and you can use the vertical-align. A one-cell table inside the ... ... <看更多>
</div>. #scss. div{. height: 25px;. line-height: 25px;. text-align: center;. span{. display: inline-block;. vertical-align: middle;. line-height: normal;. }. ... <看更多>
Vertical Centering. The lack of good ways to vertically center elements in CSS has been a dark blemish on its reputation for pretty much its entire ... ... <看更多>