小程序中calc()函数怎么用?
使用calc(),要写成:width: calc(100% / 3 - 2rpx - 10rpx); 才生效。 像:width: calc(100%/3-2rpx-10rpx);
.in{ width: calc(100% - 30px - 10%); width: -webkit-calc(100% - 30px - 10%); width: -moz-calc(100% - 30px - 10%); height: calc(100% - 20px - 12%); height: -webkit-calc(100% - 20px - 12%); height: -moz-calc(100% - 20px - 12%); background: skyblue; padding: 20px 10% 12% 30px;}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。