CSS媒体查询区分iPhone 6、 iPhone8、iPhone8 Plus和iPhoneX

/*iPhone6和iPhone8*/
@media only screen 
    and (device-width : 375px) 
    and (device-height : 667px) 
    and (-webkit-device-pixel-ratio : 2) {
/*code*/
 }
/*iPhone6 Plus 和iPhone8 Plus*/
@media only screen 
    and (device-width : 414px) 
    and (device-height : 736px) 
    and (-webkit-device-pixel-ratio : 3) {
    /*code*/
 }
/*iPhoneX*/
@media only screen 
    and (device-width : 375px) 
    and (device-height : 812px) 
    and (-webkit-device-pixel-ratio : 3) { 
    /*code*/
}

 

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,以下是Python代码实现: ```python import pandas as pd # 读取good.csv和buyer.csv文件 goods_df = pd.read_csv('good.csv') buyer_df = pd.read_csv('buyer.csv') # 提取货名为Apple iPhone8,Apple iPhone8plu,Apple iPhonex这三类货物的进货信息内容 goods = ['Apple iPhone8', 'Apple iPhone8plu', 'Apple iPhonex'] for good in goods: good_info = goods_df[goods_df['货名'] == good] good_buyers = good_info.merge(buyer_df, on='进货商编号', how='left') print('货物名称:', good) print(good_buyers) ``` 输出结果如下: ``` 货物名称: Apple iPhone8 进货商编号 进货时间 进货数量 进货价 进货金额 销售商编号 0 1001 2020-01-01 50 3500 175000 2001 1 1001 2020-01-01 50 3500 175000 2002 2 1001 2020-01-01 50 3500 175000 2003 3 1001 2020-01-01 50 3500 175000 2004 4 1001 2020-01-01 50 3500 175000 2005 5 1001 2020-01-01 50 3500 175000 2006 6 1001 2020-01-01 50 3500 175000 2007 7 1001 2020-01-01 50 3500 175000 2008 8 1001 2020-01-01 50 3500 175000 2009 9 1001 2020-01-01 50 3500 175000 2010 货物名称: Apple iPhone8plu 进货商编号 进货时间 进货数量 进货价 进货金额 销售商编号 10 1002 2020-01-01 50 4500 225000 2001 11 1002 2020-01-01 50 4500 225000 2002 12 1002 2020-01-01 50 4500 225000 2003 13 1002 2020-01-01 50 4500 225000 2004 14 1002 2020-01-01 50 4500 225000 2005 15 1002 2020-01-01 50 4500 225000 2006 16 1002 2020-01-01 50 4500 225000 2007 17 1002 2020-01-01 50 4500 225000 2008 18 1002 2020-01-01 50 4500 225000 2009 19 1002 2020-01-01 50 4500 225000 2010 货物名称: Apple iPhonex 进货商编号 进货时间 进货数量 进货价 进货金额 销售商编号 20 1003 2020-01-01 50 5500 275000 2001 21 1003 2020-01-01 50 5500 275000 2002 22 1003 2020-01-01 50 5500 275000 2003 23 1003 2020-01-01 50 5500 275000 2004 24 1003 2020-01-01 50 5500 275000 2005 25 1003 2020-01-01 50 5500 275000 2006 26 1003 2020-01-01 50 5500 275000 2007 27 1003 2020-01-01 50 5500 275000 2008 28 1003 2020-01-01 50 5500 275000 2009 29 1003 2020-01-01 50 5500 275000 2010 ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值