Dreamweaver制作网页,如何用DIV布局?并加特效。
1个回答
展开全部
不知道你所谓的特效是什么样子的?
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">
.layout{width:950px; margin:0 auto; text-align:center; clear:both; padding-bottom:10px;}
.head{ border:1px solid #000; height:150px;}
.left{ float:left; width:200px; padding-right:10px;}
.center{ float:left; width:450px;}
.right{float:right; width:280px;}
.foot{ border:1px solid #000; height:100px;}
.leftbox{ border:1px solid #990000; height:200px; text-align:left}
.centerbox{ border:1px solid #FFCC00; height:200px; text-align:left}
.rightbox{ border:1px solid #0099FF; height:200px; text-align:left}
.clear{ clear:both; height:0; overflow:hidden;}
</style>
</head>
<body>
<div class="layout">
<div class="head">head</div>
</div>
<div class="layout">
<div class="left">
<div class="leftbox">left</div>
</div>
<div class="center">
<div class="centerbox">center</div>
</div>
<div class="right">
<div class="rightbox">right</div>
</div>
<div class="clear"></div>
</div>
<div class="layout">
<div class="foot">foot</div>
</div>
</body>
</html>
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">
.layout{width:950px; margin:0 auto; text-align:center; clear:both; padding-bottom:10px;}
.head{ border:1px solid #000; height:150px;}
.left{ float:left; width:200px; padding-right:10px;}
.center{ float:left; width:450px;}
.right{float:right; width:280px;}
.foot{ border:1px solid #000; height:100px;}
.leftbox{ border:1px solid #990000; height:200px; text-align:left}
.centerbox{ border:1px solid #FFCC00; height:200px; text-align:left}
.rightbox{ border:1px solid #0099FF; height:200px; text-align:left}
.clear{ clear:both; height:0; overflow:hidden;}
</style>
</head>
<body>
<div class="layout">
<div class="head">head</div>
</div>
<div class="layout">
<div class="left">
<div class="leftbox">left</div>
</div>
<div class="center">
<div class="centerbox">center</div>
</div>
<div class="right">
<div class="rightbox">right</div>
</div>
<div class="clear"></div>
</div>
<div class="layout">
<div class="foot">foot</div>
</div>
</body>
</html>
博思aippt
2024-07-20 广告
2024-07-20 广告
博思AIPPT是基于ai制作PPT的智能在线工具,它提供了4种AI制作PPT的方式,包括AI生成大纲、AI直接生成PPT、文本生成PPT、AI提炼文档生成PPT,一站式集成多种AI生成PPT的方式,可满足办公用户的不同需求和使用场景。ai生...
点击进入详情页
本回答由博思aippt提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询