作业

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>CODING COFFEE</title>
        <meta name="Generator" content="EditPlus">
        <meta name="Author" content=''>
        <style type="text/css">
            h1{ /*margin:0 auto;
            width:50%;
            border:2px dashed red;*/
            text-align:center;
            }
            .wrapper{
                width:1080px;
                /*border:2px solid red;*/
                margin:0 auto;


            }
            .arr{
                float:left
            }
            .brr{width:50%;
            float:right
            }


            body{
                background-color:red;
                background-image:url('./coffee/img/co.jpg' );
                background-repeat:no-repeat;
                background-attachment:fixed;
                background-position:left center;
                background-size:cover;
                /*background:rgba(255,0,0,0.5) url('./coffee/img/co.jpg') no-repeat fixed left top ;
                background-size:cover*/
            }
            hr{ width:60%;

                border:2px dashed grey;
                isibility:hidden;
            }
            p{  line-height: 20px;
                color:black;
                text-align:left;
            }
            span {
                border:2px solid red;
                //padding-bottom:100px;
                //margin-bottom:100px;
                display:inline-block;
                display:none;
                isibility:hidden;
            }
                p{
                    display:inline-block;
                line-height:50px;



            }

        </style>
    </head>
    <body>

        <div>
            <h1>CODING COFFEE MENU</h1>
            <hr>

        </div>
        <!--<div class="wrapper">
                <div class="arr">
                    <img id="ppp"src="./coffee/img/c2.jpg" height="300">
                </div>
                <div class="brr">   
                    <h2>蓝山咖啡</h2>
                    <p>源自三地的咖啡豆,为周年纪念综合咖啡豆带来了特别的馥郁醇厚。如今推出三种不同包装,让你用自己喜爱的方式体验这别具风味的一杯。</p>
                </div>
                <div style="clear:both;"></div>
            </div>-->
            <script type="text/javascript">

            var app=[{'product':'蓝山咖啡','img':'"./coffee/img/c2.jpg" height="300"','descreption':'源自三地的咖啡豆,为周年纪念综合咖啡豆带来了特别的馥郁醇厚。如今推出三种不同包装,让你用自己喜爱的方式体验这别具风味的一杯。'},
                    {'product':'拿铁咖啡','img':'"./coffee/img/c2.jpg" height="300"','descreption':'源自三地的咖啡豆,为周年纪念综合咖啡豆带来了特别的馥郁醇厚。如今推出三种不同包装,让你用自己喜爱的方式体验这别具风味的一杯。'},
                    {'product':'卡布奇诺','img':'"./coffee/img/c2.jpg" height="300"','descreption':'源自三地的咖啡豆,为周年纪念综合咖啡豆带来了特别的馥郁醇厚。如今推出三种不同包装,让你用自己喜爱的方式体验这别具风味的一杯。'},
            ]
            for(i=0;i<app.length;i++){
                document.write('<div class="wrapper"><div class="arr"><img id="ppp" src='+app[i]['img']+'></div>');
                document.write('<div class="brr"><h2>'+app[i].product+'</h2>');
                document.write('<p>'+app[i]['descreption']+'</p></div><div style="clear:both;"></div></div><hr>');
            }
</script>

    </body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值