在布局文件中,我想创建一个像所有网站一样的标题。我有一个标题的图像,我怎样才能将该图像仅用于布局文件中页面的标题部分?
这是我的代码..
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo page_title; ?></title>
<?php
$homeUrl = $this->url('home', array(), array('force_canonical' => true));
$basePath = $this->basePath();
$this->headLink(array('rel' => 'shortcut icon', 'type' => 'image/png', 'href' => $this->basePath() . '/img/FantasyFootballLogo.png'))
?>
<?php echo $this->headLink() ?>
</head>
--Option1: <header style="background-image:url(/img/ffheader.png)" height="300" width="1000">
</header>
--Option2: <header>
<div style="background-image:url(/img/ffheader.png)"></div>
</header>
任何人都可以请帮助我如何设置标题?