响应式网站实战

在头部先加上一句标签

<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
/*fit to small computer*/
@media screen and (max-width: 1440px){
	/*blue_sky fit*/
	.activity_title{
		width: 500px;
		height: 420px;
	}
	.blue_sky{
		height: 570px;
	}
	.hand_phone{
		width: 333px;
		height: 340px;		
	}
	.introduce_txt_bg{
		width: 800px;
		height: 60px;
		padding: 10px 10px;
		margin-top: 30px;
		font-size: 16px;
		line-height: 20px;
		border-width: 3px;
	}
	.introduce_txt_bg:nth-child(2){
		border-width: 3px;
	}
	/*purple_part fit*/
	.purple_part{
		height: 570px;
		padding-top: 30px;
	}
	.activity_reward{
		height: 430px;
		width: 680px;
	}
}



/*fit to middle computer*/
@media screen and (min-width: 1440px) and (max-width: 1600px){
	/*blue_sky fit*/
	.activity_title{
		width: 576px;
		height: 484px;
	}
	.blue_sky{
		height: 680px;
	}
	.hand_phone{
		width: 381px;
		height: 389px;
	}
	.introduce_txt_bg{
		width: 950px;
		height: 80px;
		padding: 10px 10px;
		margin-top: 30px;
		font-size: 16px;
		line-height: 30px;
		border-width: 3px;
	}
	.introduce_txt_bg:nth-child(2){
		border-width: 3px;
	}
	/*purple_part fit*/
	.purple_part{
		height: 688px;
		padding-top: 30px;
	}
	.activity_reward{
		height: 494px;
		width: 780px;
	}	
}

转载于:https://my.oschina.net/daladida/blog/734707

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值