Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 div 标签,我想这样做:如果内容 div 标签低于 100px,则将 div 标签高度设置为 100px。但如果内容高度高于 100px - 自动设置 div 标签高度,请告诉我 css。
应用以下样式..
style='min-height:100px;'
叉
min-height: 100px; height:auto !important; height: 100px;