导航:首页 > 万维百科 > 网页设计css代码案例

网页设计css代码案例

发布时间:2021-01-22 20:29:44

1、div css网页设计实例?

以发送至您的邮箱

2、求用dreamweaver css制作简单网页的代码!!!!急用!符合要求有重谢!!!

<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">
.head { width:1000px; height:100px; margin:auto; overflow:hidden; border:1px solid #666; }
.banner { width:1000px; height:150px; margin:auto; overflow:hidden; border:1px solid #666; margin-top:10px; }
.main { width:1000px; height:300px; margin:auto; overflow:hidden; border:1px solid #666; margin-top:10px; }
.main .left { width:299px; height:300px; border-right:1px solid #666; float:left; }
.main .center { width:349px; height:300px; border-right:1px solid #666; float:left; }
.main .center .mt { height:100px; border-bottom:1px solid #666;}
.main .center .mb {}

.main .right { width:350px; height:300px; float:left; }
.footer { width:1000px; height:80px; margin:auto; overflow:hidden; border:1px solid #666; margin-top:10px;}
</style>
</head>

<body>

<div class="head">
</div>

<div class="banner">
</div>

<div class="main">
<div class="left"></div>
<div class="center">
<div class="mt"></div>
<div class="mb"></div>
</div>
<div class="right"></div>
</div>

<div class="footer">
</div>

</body>
</html>

3、网页设计,求html和css代码,效果如图

<title>DIV层切换</title>
<script language="JavaScript" type="text/javascript">
function ChangeDiv(divId,divName,zDivCount)
{
for(i=0;i<=zDivCount;i++)
{
document.getElementById(divName+i).style.display="none";
//将所有的层都隐藏
}
document.getElementById(divName+divId).style.display="block";
//显示当前层
}
</script>
</head>
<body>
<span onclick="JavaScript:ChangeDiv('0','JKDiv_',2)" style="cursor:hand;">内容一</span>
<span onclick="JavaScript:ChangeDiv('1','JKDiv_',2)" style="cursor:hand;">内容二</span>
<span onclick="JavaScript:ChangeDiv('2','JKDiv_',2)" style="cursor:hand;">内容三</span>
<div id="JKDiv_0" style="font-size:14px;margin:20px;color:#FF0000;">内容部分第一区</div>
<div id="JKDiv_1" style="display:none;font-size:14px;margin:10px;color:#FF0000;">内容部分第二区</div>
<div id="JKDiv_2" style="display:none;font-size:14px;margin:10px;color:#FF0000;">内容部分第三区</div>
</body>

4、html+css+js小案例(项目源码)

想让别人提供代码,还有这么多要求,真是搞笑的

5、网页设计请教,这个结构的html和css代码怎么写?如图,本人新手,请写出完整代码,颜色随意,谢谢!

<html>
    <head>
        <meta charset="utf-8">
    </head>
    <body>
        <div class="main">
            <div class="a"></div>
            <div class="b">
                <div class="b1"></div>
                <div class="b2"></div>
            </div>
            <div class="c"></div>
        </div>
        <style>
            .main{
                width:900px;
                height:600px;
            }
            .a,.b,.c{
                float:left;
            }
            .a{
                width:300px;
                height:600px;
                background-color:yellow;
            }
            .b{
                width:300px;
                height:600px;
            }
            .b1{
                display:block;
                width:300px;
                height:300px;
                background-color:green;
            }
            .b2{
                width:300px;
                height:300px;
                background-color:black;
            }
            .c{
                width:300px;
                height:600px;
                background-color:red;
            }
        </style>
    </body>
</html>

与网页设计css代码案例相关的知识