当前位置: 首页>>代码示例>>PHP>>正文


PHP Q_Response::htmlAttributes方法代码示例

本文整理汇总了PHP中Q_Response::htmlAttributes方法的典型用法代码示例。如果您正苦于以下问题:PHP Q_Response::htmlAttributes方法的具体用法?PHP Q_Response::htmlAttributes怎么用?PHP Q_Response::htmlAttributes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Q_Response的用法示例。


在下文中一共展示了Q_Response::htmlAttributes方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

<!DOCTYPE html>
<html <?php 
echo Q_Response::htmlAttributes();
?>
>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<?php 
echo Q_Response::metas(true, "\n\t");
?>
	<meta name="HandheldFriendly" content="True" />
	<meta name="viewport" content="minimal-ui, width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0<?php 
if (Q_Request::platform() == 'android') {
    ?>
, target-densitydpi=medium-dpi<?php 
}
?>
" />
	<meta name="mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-title" content="Groups">
	<meta name="mobile-web-app-capable" content="yes">
	<?php 
if (Q_Request::platform() !== 'android') {
    ?>
	<link rel="apple-touch-icon-precomposed" sizes="76x76" href="<?php 
    echo Q_Html::themedUrl('img/icon/76.png');
    ?>
" />
	<link rel="apple-touch-icon-precomposed" sizes="120x120" href="<?php 
开发者ID:AndreyTepaykin,项目名称:Platform,代码行数:31,代码来源:mobile.php

示例2: ceil

<?php

include "Q.inc.php";
$ms = ceil(Q::milliseconds());
$htmlAttributes = Q_Response::htmlAttributes();
$baseUrl = Q_Request::baseUrl();
echo <<<EOT


\t<!DOCTYPE html>
\t<html {$htmlAttributes}>
\t<head>
\t\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
\t\t<title>Fast loading page</title>
\t\t<link rel="shortcut icon" href="{$baseUrl}/favicon.ico" type="image/x-icon">
\t</head>
\t<body>

\t\t<h1>Even Faster Loading Page</h1>
\t\t<p>
\t\t\tThis is a naked PHP script that includes the Qbix Platform as a library, like this:
\t\t</p>
\t\t<pre>
\t\t\t&lt;?php include ("Q.inc.php") ?&gt;
\t\t</pre>
\t\t<p>
\t\t\tIn this scenario, the entire Qbix environment is ready to go in <strong>{$ms} milliseconds</strong>!
\t\t</p>
\t\t<p>
\t\t\tTry refreshing this page, and it will probably load even faster.
\t\t</p>
开发者ID:AndreyTepaykin,项目名称:Platform,代码行数:31,代码来源:fast.php


注:本文中的Q_Response::htmlAttributes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。