Scene: The data in the navigation bar, when the amount of data is small, only a few pages, the number is only 1,2,3,4 ..., the number is written in the span label, the span does not need to be wide, set a fixed width can be, but when the amount of data is very large, such as: Log Management-There is an increase in the deletion of records, is not deleted. At this point, tens of millions of data shows that the last line, the number of pages may be millions of, display 7 digits, span label width will increase, with the increase in digital length need to increase. CSS settings, set a minimum width, inner spacing:
{min-width:20px;
Width:auto;
padding:2px;
Display:inline-block
}
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Content in span increases as the number length increases