【网页设计】前端代码练习(六)

室外居家布局设计 

<!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=utf-8" />

<title>无标题文档</title>

<style type="text/css">

*{padding:0;margin:0;}

div{width:1400px;height:300px;margin:20px auto;}

ul{list-style:none;float:left;width:200px;margin:10px;border:1px solid #CCC;text-align:center;height:250px;padding-top:20px;}

li{margin-bottom:10px;}

</style>

</head>



<body>

<div>

       <ul>

           <li><img src="file:///D|/网页设计与制作/网页设计站点/images/pic_1.jpg"</li>

           <li>室外居家布局设计</li>

    </ul>

       <ul>

           <li><img src="file:///D|/网页设计与制作/网页设计站点/images/pic_1.jpg"</li>

           <li>室外居家布局设计</li>

    </ul>

       <ul>

           <li><img src="file:///D|/网页设计与制作/网页设计站点/images/pic_1.jpg"</li>

           <li>室外居家布局设计</li>

    </ul>

       <ul>

           <li><img src="file:///D|/网页设计与制作/网页设计站点/images/pic_1.jpg"</li>

           <li>室外居家布局设计</li>

    </ul>

       <ul>

           <li><img src="file:///D|/网页设计与制作/网页设计站点/images/pic_1.jpg"</li>

           <li>室外居家布局设计</li>

    </ul>

</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=utf-8" />

<title>无标题文档</title>

<style type="text/css">

*{padding:0;margin:0;}

div{width:1400px;height:300px;margin:20px auto;}

ul{list-style:none;float:left;width:200px;margin:10px;border:1px solid #CCC;text-align:center;height:250px;padding-top:20px;}

li{margin-bottom:10px;}

</style>

</head>



<body>

<div>

       <ul>

           <li><img src="file:///D|/网页设计与制作/网页设计站点/images/pic_1.jpg"</li>

           <li>室外居家布局设计</li>

    </ul>

       <ul>

           <li><img src="file:///D|/网页设计与制作/网页设计站点/images/pic_1.jpg"</li>

           <li>室外居家布局设计</li>

    </ul>

       <ul>

           <li><img src="file:///D|/网页设计与制作/网页设计站点/images/pic_1.jpg"</li>

           <li>室外居家布局设计</li>

    </ul>

       <ul>

           <li><img src="file:///D|/网页设计与制作/网页设计站点/images/pic_1.jpg"</li>

           <li>室外居家布局设计</li>

    </ul>

       <ul>

           <li><img src="file:///D|/网页设计与制作/网页设计站点/images/pic_1.jpg"</li>

           <li>室外居家布局设计</li>

    </ul>

</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=utf-8" />

<title>无标题文档</title>

<style type="text/css">

*{padding:0;margin:0;}

.all{width:600px;height:300px;margin:50px auto;}

.one{width:600px;height:150px;background:url(images/banner1.jpg) no-repeat;}

.two{width:600px;height:32px;background:url(images/button1_bg.jpg);}

a:link,a:visited{font-size:14px;width:68px;height:32px;background:url(images/button1.jpg) no-repeat;float:left;color:#9BB40F;padding-top:8px;padding-left:12px;text-decoration:none;}

a:hover{width:68px;height:32px;background:url(images/button2.jpg) no-repeat;float:left;color:#FFF;padding-top:8px;padding-left:12px;}

</style>

</head>



<body>

<div class="all">

  <div class="one"></div>

       <div class="two">

           <a href="#">首页导读</a>

           <a href="#">首页导读</a>

        <a href="#">首页导读</a>

        <a href="#">首页导读</a>

        <a href="#">首页导读</a>

    </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=utf-8" />

<title>无标题文档</title>

<style type="text/css">

*{padding:0;margin:0;}

.all{width:613px;height:400px;margin:20px auto;position:relative;background:#1E2D3B;}

.left{background:url(images/road.png) no-repeat 70px 0px;float:left;width:332px;height:400px;}

.one{width:158px;height:177px;background:url(images/icon1.png) no-repeat;position:absolute;top:130px;left:6px;}

.one:hover{background:url(images/icon2.png) no-repeat;}

.two{width:98px;height:106px;background:url(images/icon3.png) no-repeat;position:absolute;top:130px;left:233px;}

.two:hover{background:url(images/icon4.png) no-repeat;}

.three{width:69px;height:78px;background:url(images/icon5.png) no-repeat;position:absolute;top:17px;left:127px;}

.three:hover{background:url(images/icon6.png) no-repeat;}

.four{width:45px;height:50px;background:url(images/icon7.png) no-repeat;position:absolute;top:10px;left:230px;}

.four:hover{background:url(images/icon8.png) no-repeat;}

.right{font-family:"微软雅黑";font-style:italic;float:right;margin-top:50px;height:400px;width:260px;}

h2{font-size:80px;color:#3F9ADE;}

.six{color:#535F6C;font-size:18px;font-family:"微软雅黑";margin-top:5px;font-weight:bold;}

.seven{margin-top:20px;}

</style>

</head>



<body>

<div class="all">

       <div class="left">

           <a href="#" class="one"></a>

           <a href="#" class="two"></a>      

           <a href="#" class="three"></a>   

           <a href="#" class="four"></a>   

    </div>

       <div class="right">

           <h2>查 违</h2>

        <p class="six">及时、迅速、精准、便捷</p>

           <p class="seven"><img src="images/car.png"  /></p>

    </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=utf-8" />

<title>无标题文档</title>

<style type="text/css">

*{padding:0;margin:0;list-style:none;}

.all{width:810px;height:430px;margin:20px auto;}

.top{width:780px;height:120px;}

.three{float:left;margin-left:20px;}

.four{float:right;}

.one{float:left;margin-left:10px;}

.two{font-size:14px;text-align:center;margin-top:5px;}

</style>

</head>



<body>

<div class="all">

       <div class="top">

           <p class="three"><img src="images/logo.png" width="200"/></p>

           <p class="four"><img src="images/title.png"  width="300"/></p>

    </div>

       <ul class="one">

           <li><img src="images/people1.png" width="150"/></li>

        <li class="two">C罗</li>

    </ul>

       <ul class="one">

           <li><img src="images/people2.png" width="150"/></li>

        <li class="two">梅西</li>

    </ul>

    <ul class="one">

           <li><img src="images/people3.png" width="150"/></li>

        <li class="two">内马尔</li>

    </ul>

    <ul class="one">

           <li><img src="images/people4.png" width="150"/></li>

        <li class="two">里贝里</li>

    </ul>

    <ul class="one">

           <li><img src="images/people5.png" width="150"/></li>

        <li class="two">得罗巴</li>

    </ul>

</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=utf-8" />

<title>无标题文档</title>

<style type="text/css">

*{padding:0;margin:0;list-style:none;}

.all{width:700px;margin:20px auto;border-top:2px double #D4D4D4;border-bottom:2px double #D4D4D4;}

.one{margin-top:20px;}

li{float:left;margin-right:30px;margin-bottom:10px;}

p{clear:both;margin-bottom:20px;border-left:10px solid #CCCCCC;padding-left:5px;color:#8F8F8F}

span{color:#252525;}

</style>

</head>



<body>

<div class="all">

       <div class="one">

           <ul>

               <li><img src="images/things1.png"  /></li>

            <li><img src="images/things2.png"  /></li>

            <li><img src="images/things3.png"  /></li>

        </ul>

    </div>

       <p><span>蓝牙无线耳机:</span>保障无损传输的M3,由于雷柏H1000使用的M3无线音频解决方案的传输带宽可以达到2M,跳频式非压缩数据传输和数据打包及拼接协议。</p>

       <p><span>超级笔记本电脑:</span>保障无损传输的M3,由于雷柏H1000使用的M3无线音频解决方案的传输带宽可以达到2M,跳频式非压缩数据传输和数据打包及拼接协议。</p>

    <p><span>复古磁带蓝牙音箱:</span>保障无损传输的M3,由于雷柏H1000使用的M3无线音频解决方案的传输带宽可以达到2M,跳频式非压缩数据传输和数据打包及拼接协议。</p>

</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=utf-8" />

<title>无标题文档</title>

<style type="text/css">

*{padding:0;margin:0;}

.all{background:url(images/bg.png) no-repeat;width:346px;height:578px;margin:20px auto;padding-left:37px;padding-top:91px;}

.img{width:273px;height:410px;overflow:scroll;}

</style>

</head>



<body>

<div class="all">

       <div class="img"><img src="images/content.png" /></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=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{padding:0;margin:0;boder:0px;list-style:none;}
body{font-family:"微软雅黑";font-size:12px;color:#FFF;}
.banner{width:1000px;height:285px;margin:13px auto 15px auto;overflow:hidden;}
.left{width:755px;height:285px;font-weight:bold;background:url(%E7%AC%AC%E4%B8%83%E7%AB%A0-images/sp_tu_2.jpg);position:relative;float:left;}
.content_left{position:absolute;top:90px;right:45px;text-align:right;}
.school_en{font-size:14px;}
.school_ch{font-size:24px;font-family:"黑体";background:url(%E7%AC%AC%E4%B8%83%E7%AB%A0-images/pic_1.jpg) no-repeat right center;}
.advertise{margin-top:20px;font-family:"黑体";font-size:16px;}
ul.style_a{margin-top:25px;margin-left:120px;list-style:none;overflow:hidden;}
ul.style_a li{float:left;margin-left:10px;}
ul.style_a li a{baackground:#FFF;boder:1px solid #ff7202;width:26px;height:22px;text-align:center;line-height:22px;vertical-align:middle;
display:block;color:#ff7202;font-size:18px;text-decoration:none;}
ul.style_a li.current a{width:30px;height:26px;line-height:26px;background:#ff7202;color:#FFF;margin-top:-2px;position:relative;}
.right{width:245px;height:285px;background:#1flele;float:right;position:relative;}
.content_right{position:absolute;top:50px;left:30px;}
ul.style_icon{margin-top:10px;}
ul.style_icon li{float:left;margin-right:12px;}
.cl{clear:both;margin-top:55px;margin-right:30px;text-indent:2em;line-height:24px;}
</style>
</head>
<div class="banner">
	<div class="left">
    	<div class="conter_left">
        	<p class="school_en">CHUANZHIBOKECHUAN<br />ZHIBOKE</p>
        	<p class="shool_ch">传智播客</p>
        	<p class="advertise">以就业为导向<br />打造理论与实践相结合的实战型人才</p>
        <ul class="style_a">
            <li class="current"><a href="#">1</a></li>
            <li><a href="#">2</a></li>
            <li><a href="#">3</a></li>
            <li><a href="#">4</a></li>
        </ul>
        </div>
    <div class="right">
    <div class="content_right">
        <h4>课程介绍<br />INTRODUCTION</h4>
        <ul class="style_icon">
            <li><a href="#"><img src="第七章-images/icon_r1_c1.png" /></a></li>
            <li><a href="#"><img src="第七章-images/icon_r1_c3.png" /></a></li>
            <li><a href="#"><img src="第七章-images/icon_r1_c5.png" /></a></li>
            <li><a href="#"><img src="第七章-images/icon_r1_c7.png" /></a></li>
            </ul>
        <p class="cl">在传智播客设计学院,您只需要花一份学费,就可以同时学习平面设计,网页设计,ui设计,flash设计四门主流技术。</p>
        </div>
    </div>
</div>
<body>
</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=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{padding:0;margin:0;}
.one{width:316px;height:100px;margin:50px auto;border:1px solid #CCC;}
.two{width:180px;height:100px;font-size:12px;float:left;}
h1,p{padding-left:10px;padding-top:10px;}
h1{font-size:16px;}
.three{float:right;height:100px;}
</style>
</head>

<body>
<div class="one">
	<div class="two">
    	<h1>统一存储,大道智简</h1>
    	<p>华为执行副总裁徐直军;华为致力于通过提升管道容量,增强管道使能,优化管道管理,使管道更宽。</p>
    </div>
	<div class="three"><img src="images/content.jpg" /></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=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.father{background:#ccc;boder:1px dashed #999;}
.box01,.box02,.box03{height:50px;line-height:50px;background:#f9c;border:1px dashed #999;margin:15px;padding:0px 10px;}
.box01,.box02,.box03{float:left;}
p{background:#ccf;border:1px dashed #999;margin:15px;padding:0px 10px;}
</style>
</head>

<body>
<div class="father">
	<div class="box01">box01</div>
    <div class="box02">box02</div>
    <div class="box03">box03</div>
    <p>这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字,这里是浮动块外围的文字。
    </p>
</div>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值