Skip to content

Instantly share code, notes, and snippets.

@heroims
Created August 22, 2017 03:16
Show Gist options
  • Save heroims/711322fc5b5814fb65fcebcf362ba3ce to your computer and use it in GitHub Desktop.
Save heroims/711322fc5b5814fb65fcebcf362ba3ce to your computer and use it in GitHub Desktop.
mobile public html header
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Expires" CONTENT="-1">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<title><?php if(isset($title)){echo $title;}else{echo '首页';}?></title>
<link rel="Shortcut Icon" href="<?php echo $site_url;?>static/fav.ico" />
<link href="<?php echo $site_url;?>static/m/css/index.css" rel="stylesheet" type="text/css">
<?php if(isset($style_arr)){?>
<?php foreach($style_arr as $style_item){?>
<link href="<?php echo $style_item;?>" rel="stylesheet" type="text/css">
<?php }?><?php }?>
<script src="<?php echo $site_url;?>static/js/main.js"></script>
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment