0
什麼能在頁面空白空間網頁上
我想提供的照片澄清的頂部,但由於計算器低信譽的可能原因空白我不能把它上傳的頂部。我正在使用Smarty作爲php模板引擎。
<html>
<head>
{include file="_js.tpl"}
<title>{$title|escape}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
{literal}
<style type="text/css">
body{
margin:0;
padding:0;
display: block;
font-family: arial;
}
#main_iframe
{
position: relative;
width: 100%;
height:665px;
border:0px;
}
#iframe_setting{
padding-left: 220px;
background: url('{/literal}{$vir_img}{literal}background.png');
}
#content-wrapper{
height: 665px;
padding-left: 10px;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$("button#logout").click(function(){
window.location = "{/literal}{$url_app}{literal}?m=account&c=do_logout";
});
});
function go(loc)
{
document.getElementById('main_iframe').src=loc;
}
function go3(loc)
{
document.getElementById('iframeid').src=loc;
}
</script>
{/literal}
</head>
<body>{include file="header.tpl"}
<div style="position:absolute;z-index: 999;">
{include file="sidebar.tpl"}
</div>
<div id="iframe_setting">
<div id="content-wrapper">
{$content}
</div>
</div>
{include file="footer.tpl"}
</body>
</html>
請發佈呈現的HTML。你可以包含一個鏈接到你的圖像,並有足夠的代表人可以嵌入它。 – j08691 2013-05-10 02:55:37
你可以使用任何可用的CSS重置。只是谷歌「CSS重置」,或者你可以做body,html {margin:0;填充:0; } – 2013-05-10 02:56:34
https://www.dropbox.com/s/htvxc9vkm45bryn/Screenshot%20from%202013-05-10%2010%3A46%3A05.png – user10908 2013-05-10 03:16:18