元标记在同一行 [英] Meta tags in the same line
本文介绍了元标记在同一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Zend Framework 创建网站.在我的布局中我写
I'am using Zend Framework to create web sites. In my layout I write
<?php
echo $this->headTitle('Zend Framework');
$this->headMeta()->appendName('keywords', 'framework php productivity');
$this->headMeta()->appendName('description', 'some description');
echo $this->headMeta();
?>
在源代码中,meta-title 和 meta-keywords 在同一行.
In source code meta-title and meta-keywords become in the same line.
<title>Zend Framework</title> <meta name="keywords" content="framework php productivity" />
<meta name="description" content="some description" />
搜索优化真的很重要吗?
Is it realy matters on Search Optimisation or not?
推荐答案
它没有.你可以不理它.
It does not. You can leave it alone.
但是如果你想有一个换行符,你可以使用:
But if you want to have a new line character, you can use:
$this->headMeta()->setPostfix("\n")
这篇关于元标记在同一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文