文章内容页广告浮于左上角的解决办法
2007-03-14 00:00
363 查看
这个是整页代码,你可以看着改了,也可以保存成HTML文件,完了试试看就知道了,主要用的CSS+DIV
上面的东西移到模板中,下面的东西也是一样~完了就行了~
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>文章内容页广告浮于左上角的解决办法</title>
<style type="text/css">
.container {
display:table;
width:500px;
background:#66FFCC;
}
.main {
display:table-row;
width:100%;
background:#669933;
}
.left {
float:left;
width:165px;
display:table-cell;
background:#663399;
}
.right {
background:#33CCFF
display:table-cell;
}
</style>
</head>
<body>
<div class="container">
<div class="main">
<div class="left">广告部分。
</div>
<div class="right">
文章内容部分<br />
文章内容部分<br />
文章内容部分<br />
文章内容部分<br />
文章内容部分文章内容部分文章内容部分<br />
文章内容部分<br />
文章内容部分<br />
文章内容部分<br />
文章内容部分<br />
<br /> </div>
</div>
</div>
</body>
</html>
上面的东西移到模板中,下面的东西也是一样~完了就行了~
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>文章内容页广告浮于左上角的解决办法</title>
<style type="text/css">
.container {
display:table;
width:500px;
background:#66FFCC;
}
.main {
display:table-row;
width:100%;
background:#669933;
}
.left {
float:left;
width:165px;
display:table-cell;
background:#663399;
}
.right {
background:#33CCFF
display:table-cell;
}
</style>
</head>
<body>
<div class="container">
<div class="main">
<div class="left">广告部分。
</div>
<div class="right">
文章内容部分<br />
文章内容部分<br />
文章内容部分<br />
文章内容部分<br />
文章内容部分文章内容部分文章内容部分<br />
文章内容部分<br />
文章内容部分<br />
文章内容部分<br />
文章内容部分<br />
<br /> </div>
</div>
</div>
</body>
</html>
相关文章推荐
- 文章内容页广告浮于左上角的解决办法
- dedecms恶意注册与发广告文章的解决办法
- UEditor不能获取文章内容的解决办法
- asp 文章内容里的图片宽度过大 撑爆页面布局 解决办法
- WordPress中修改固定链接导致无法显示文章内容的问题的解决办法
- Discuz! X3 win Apache迁移到linux nginx后打开文章内容出现404解决办法
- UEditor不能获取文章内容的解决办法
- 织梦后台编辑文章时内容为空,可数据库里有内容,读取正常的问题解决办法
- android RelativeLayout 内容居中解决办法:
- Hibernate3Util.closeSession()后对象内容消失解决办法
- 推荐位排序修改内容排序失效的解决办法
- dedecms列表中显示文章完整标题的解决办法
- IIS7错误:“Web服务器被配置为不列出此目录的内容”的解决办法
- ECLIPSE打开后出现“发现了以元素’d:skin‘开头的无效内容.....“的解决办法
- Android 虚拟按键遮住了页面内容解决办法
- UEditor编辑文章出现多余空行问题的解决办法
- Oracle导出时,表内容为空的解决办法
- OpenCms中FCKEditor保存内容时invalid XML character (Unicode: 0x0)错误解决办法
- 转载的文章,有些感触。但有什么解决办法吗?创新也需要付出和积累,必然会导致当前短期利益受损啊
- 文章标题 : 关于dpkg:处理 xxx (--configure)时出错:的我的解决办法