“爱家居“网页制作代码

html代码如下

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>爱家居</title>
    <link href="css/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <!-- head begin -->
    <div id="bg">
        <div class="nav">
            <span class="margin_more">网站首页</span>
            <span>床和床垫</span>
            <span>卧室纺织品</span>
            <span>灯具照明</span>
            <span class="search">输入商品名称</span>
        </div>
    </div>
    <!-- head end -->
    <!-- news begin -->
    <div id="news">
        <div class="news_con">
            <img src="images/news1.jpg"/>
            <h2 class="one">BEST 贝达</h2>
            <p class="two">将杂乱无章的物品收纳到视线之外,在玻璃柜门后展示自己的心爱之物!</p>
            <p class="shadow"></p>
        </div>
        <div class="news_con">
            <img src="images/news2.jpg"/>
            <h2 class="one">PONG波昂</h2>
            <p class="two">当孩子能做大人的事,他们会觉得自己很特别也很重要。这也是我们打造PONG波昂儿童扶手椅的原因。现在你们可以并排在一起尽情的放松了。</p>
            <p class="shadow"></p>
        </div>
        <div class="news_con">
            <img src="images/news3.jpg"/>
            <h2 class="one">GUNDE冈德尔</h2>
            <p class="two">一把椅子蕴含多少亮点?这一款,就值得你多看几眼。它可以折叠,但也很安全。它可以承受100公斤的重量,但本身却很轻盈。</p>
            <p class="shadow"></p>    
        </div>
    </div>
    <!-- news end -->
    <!-- exhibition begin -->
    <div id="exhibition">
        <h3 class="tittle"></h3>
        <div class="pic">
            <img src="images/img1.jpg"/>
            <img src="images/img2.jpg"/>
            <img src="images/img3.jpg"/>
        </div>
    </div>
    <!-- exgibition end -->
    <!-- footer begin -->
    <div id="footer">爱家居版权所有2016-2026京ICP备2222222号&nbsp;&nbsp;京公网安备222222222</div>
    <!-- footer end -->
    <!-- tree begin -->
    <div class="tree">
        <img src="images/erweima.png"/>
    </div>
    <!-- tree end -->
</body>
</html>

css样式设置

​
*{margin:0;padding:0;outline:none;border:0;}
body{font-family:"微软雅黑";background:#fdfdfd;}
/*head*/
#bg{
    width:1200px;
    height: 617px;
    background:url(images/bg.png) no-repeat;
    margin:0 auto;
}
.nav{
    width:850px;
    height:50px;
    margin:0 auto;
    padding: 50px 0 0 150px;
    background:url(images/logo.png) left center no-repeat;
}
.nav span{
    color:#685649;
    font-size:16px;
    padding:0 30px;
}
.nav .search{
    float:right;
    width:200px;
    height:30px;
    line-height:30px;
    border-radius: 100px;
    color:#aaa;
    font-size:14px;
    background:#fff url(images/f.png) no-repeat 10px center;
}
/*head*/
/*news*/
#news{
    width:1200px;
    height:455px;
    background:url(images/dongtai.jpg) center top no-repeat;
    margin:18px auto;
    padding-top:120px;
}
.news_con{
    float:left;
    margin-left:70px;
}
.news_con .one{
    width:284px;
    height:50px;
    padding-left:10px;
    line-height:50px;
    font-weight:bold;
    font-size:16px;
    border-bottom:1px solid #ddd;
}
.news_con .two{
    width:284px;
    height:70px;
    line-height:20px;
    padding:10px 0 0 10px;
    font-size:12px;
    color:#bbb;
}
.news_con .shadow{
    width:294px;
    height:5px;
    background:url(images/yinying.jpg) no-repeat;
}
/*news/
/*exhibition*/
#exhibition{
    width:1200px;
    background-image:radial-gradient(ellipse at center,#fff,#d6e4ed);
    margin:50px auto;
}
.tittle{
    width:636px;
    height:150px;
    margin:0px auto;
    background:url(images/shenghuo.png) no-repeat center center; 
}
#exhibition .pic{
    width:1000px;
    height:360px;
    margin:0 auto;
}
#exhibition .pic img{../margin-left:45px;}
/*exhibition*/
/*foot*/
#footer{
    width:1200px;
    height:80px;
    background:url(../images/footer_bg.jpg) repeat-x;
    color:#fff;
    text-align:center;
    line-height:80px;
    margin:0 auto;
}
.tree{
    position:fixed;
    right:5%;
    bottom:5%;
}
/*foot*/

​

有问题可评论区讨论

  • 18
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
家居是一个提供家居产品购买和装修指导的网站,为了提供用户良好的浏览体验,网页设计是至关重要的。HTMLCSS是实现网页设计的两种基本技术。下面是针对家居网页设计使用HTMLCSS技术的一些方面的回答。 首先,HTML是超文本标记语言,用于构建网页的结构和内容。在家居网页设计中,可以使用HTML标签来定义标题、段落、图像、链接等元素,以及构建网页的整体结构。通过使用合适的HTML标签,可以实现页面的层次结构和视觉呈现效果。 其次,CSS是层叠样式表,用于定义网页的样式和布局。在家居网页设计中,可以使用CSS来设定字体样式、颜色、背景、边框等元素的外观。通过CSS技术,可以实现网页的美化和定制化,使其更符合家居网站的整体风格。 另外,响应式设计是现代网页设计的重要趋势之一,使网页能够自适应不同的屏幕尺寸和设备。在家居网页设计中,可以使用CSS媒体查询和响应式布局技术,使网页能够在手机、平板电脑和桌面电脑等不同设备上呈现出最佳的布局和体验。 此外,通过使用HTMLCSS,还可以实现与用户的交互功能。例如,可以通过HTML表单和CSS样式设计实现用户的注册、登录和搜索功能,提高用户使用网站的便利性和效率。 总结起来,家居网页设计使用HTMLCSS技术,可以实现页面结构的构建、样式和布局的定义、响应式设计的实现以及与用户的交互功能。通过合理运用这些技术,可以为用户提供良好的网页浏览体验,提高网站的吸引力和竞争力。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值