/* common.scss */
$mainColor: red;
$mainPdR:60px;
$borderColor:#BABABE;
$borderColorDetail:#88888E;
@mixin font-dpr($font-size){
font-size: $font-size;
[data-dpr="2"] & {
font-size: $font-size * 2;
}
[data-dpr="3"] & {
font-size: $font-size * 3;
}
}
/*使用@include font-dpr(16px);*/
@mixin imgRetina($image, $extension, $width, $height, $position: center, $repeat: no-repeat) {
background: url(
常用mixin方法
最新推荐文章于 2023-12-22 00:50:30 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)