本文整理汇总了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
示例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<?php include ("Q.inc.php") ?>
\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>