What is 100% in calc function top: calc(100% + 8px)

在calc中写100% 的含义:

譬如:  top: calc(100% + 8px) 指的是top的值在父元素的高度基础上在增加8px; 此处100%指的父元素(relative)的高度

posted @ 2020-09-28 16:27  mediocre92  阅读(212)  评论(0)    收藏  举报