Home  >  Article  >  Web Front-end  >  [css] How does CSS make the width of a DIV change as the content changes_html/css_WEB-ITnose

[css] How does CSS make the width of a DIV change as the content changes_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:50:071507browse

Let the div change size according to the content

div{ width:auto; display:inline-block !important; display:inline; }

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn