按照代码写的 setTimeout(function() { $("#fr-btn-BT1").css({"background":"yellow"}); //BT1为按钮名称,需要大写,背景色 $("#fr-btn-BT1 div em button").css({"color":"red"}); //字体颜色 $("#fr-btn-BT1 div em button").css("font-family", "阿里巴巴普惠体");//字体类型 $("#fr-btn-BT1 div em button").css("font-size", "25px");//字体大小 $("#fr-btn-BT1").css({"border-radius":"25px"}); //边框圆角 },100); ,pc端预览正常, 模拟移动端预览,刷新一下,报错 有没有什么写法是两边都不报错的 |