Http和Html相关

1. html相关

设置html页面不要缓存

html的<head>标签里面加入:

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />

常用的设置PC页面在手机端缩放显示

html的<head>标签里面加入:

<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
<meta name="renderer" content="webkit">
文档更新时间: 2018-11-10 23:05   作者:nick