mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-19 18:00:51 +08:00
Fixes #1691: added “viewport” meta tag to layout views.
This commit is contained in:
@ -16,6 +16,7 @@ AppAsset::register($this);
|
|||||||
<html lang="<?= Yii::$app->language ?>">
|
<html lang="<?= Yii::$app->language ?>">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="<?= Yii::$app->charset ?>"/>
|
<meta charset="<?= Yii::$app->charset ?>"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title><?= Html::encode($this->title) ?></title>
|
<title><?= Html::encode($this->title) ?></title>
|
||||||
<?php $this->head() ?>
|
<?php $this->head() ?>
|
||||||
</head>
|
</head>
|
||||||
|
@ -17,6 +17,7 @@ AppAsset::register($this);
|
|||||||
<html lang="<?= Yii::$app->language ?>">
|
<html lang="<?= Yii::$app->language ?>">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="<?= Yii::$app->charset ?>"/>
|
<meta charset="<?= Yii::$app->charset ?>"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title><?= Html::encode($this->title) ?></title>
|
<title><?= Html::encode($this->title) ?></title>
|
||||||
<?php $this->head() ?>
|
<?php $this->head() ?>
|
||||||
</head>
|
</head>
|
||||||
|
@ -16,6 +16,7 @@ AppAsset::register($this);
|
|||||||
<html lang="<?= Yii::$app->language ?>">
|
<html lang="<?= Yii::$app->language ?>">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="<?= Yii::$app->charset ?>"/>
|
<meta charset="<?= Yii::$app->charset ?>"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title><?= Html::encode($this->title) ?></title>
|
<title><?= Html::encode($this->title) ?></title>
|
||||||
<?php $this->head() ?>
|
<?php $this->head() ?>
|
||||||
</head>
|
</head>
|
||||||
|
@ -11,6 +11,8 @@ yii\debug\DebugAsset::register($this);
|
|||||||
<html>
|
<html>
|
||||||
<?php $this->beginPage() ?>
|
<?php $this->beginPage() ?>
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title><?= Html::encode($this->title) ?></title>
|
<title><?= Html::encode($this->title) ?></title>
|
||||||
<?php $this->head() ?>
|
<?php $this->head() ?>
|
||||||
</head>
|
</head>
|
||||||
|
@ -14,6 +14,7 @@ $asset = yii\gii\GiiAsset::register($this);
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title><?= Html::encode($this->title) ?></title>
|
<title><?= Html::encode($this->title) ?></title>
|
||||||
<?php $this->head() ?>
|
<?php $this->head() ?>
|
||||||
</head>
|
</head>
|
||||||
|
Reference in New Issue
Block a user