如何用css让一个div弹框随内容高度自适应

前提高度不设定或者auto,min-heigth都不适应,底部会出现空白。

.errors{    width: 390px;    min-height: 210px;    background:white;    position: fixed;    top: 0;    right: 0;    bottom: 0;    left: 120px;    z-index: 100;    margin: 150px auto;    color: black;
}

https://img4.mukewang.com/5c1d2b8e0001cd3508000475.jpg

HUH函数
浏览 1642回答 1
1回答

米琪卡哇伊

把bottom:0 去掉
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript