<style> /*手机*/ @media screen and (max-600px){ .box_2 { padding-top: 45px; padding-bottom: 50px; /* background: #fff; */ /* 添加背景图片 */ background-image: url("Home/images/bgP.jpg"); background-size: 100% 100%; background-repeat: no-repeat; background-position: center; } } /*平板*/ @media screen and (min-600px) and (max-960px){ .box_2 { padding-top: 45px; padding-bottom: 50px; /* background: #fff; */ /* 添加背景图片 */ background-image: url("Home/images/bg2.jpg"); background-size: 100% 100%; background-repeat: no-repeat; background-position: center; } } /*PC*/ @media screen and (min-960px){ .box_2 { padding-top: 45px; padding-bottom: 50px; /* background: #fff; */ /* 添加背景图片 */ background-image: url("Home/images/bg2.jpg"); background-size: 100% 100%; background-repeat: no-repeat; background-position: center; } } </style>