首页 > 其他分享 >33.html+css网页设计实例/“个人”博客主题介绍/web前端期末大作业/

33.html+css网页设计实例/“个人”博客主题介绍/web前端期末大作业/

时间:2024-03-25 20:02:22浏览次数:36  
标签:web repeat no 33 jpg height html background images

前言

本文以“个人”博客为主题设计,本实例应用html+css。包括音频、点击事件、留言、登录页面等,供大家参考。【关注作者互关|获取更多源码(2000+个Web案例源码)|优质文章】;您的支持是我创作的动力!看到这里就【点赞收藏博文】,有兴趣的联系我交流分享!3Q!


一、网页效果


二、代码展示

1.HTML

代码如下(节选示例):

<html lang="zh">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>首页</title>
        <link rel="stylesheet" type="text/css" href="css/style.css" />
        <style type="text/css">
            #images1 {
                width: 104px;
                display: block;
                height: 34px;
                background: url(images/zp_01.jpg) no-repeat;
            }

            #images1:hover {
                background: url(images/zp_1.jpg) no-repeat;
            }

            #images2 {
                width: 104px;
                display: block;
                height: 34px;
                background: url(images/zp_02.jpg) no-repeat;
            }

            #images2:hover {
                background: url(images/zp_2.jpg) no-repeat;
            }

            #images3 {
                width: 104px;
                display: block;
                height: 34px;
                background: url(images/zp_03.jpg) no-repeat;
            }

            #images3:hover {
                background: url(images/zp_3.jpg) no-repeat;
            }

            #images4 {
                width: 104px;
                display: block;
                height: 34px;
                background: url(images/zp_04.jpg) no-repeat;
            }

            #images4:hover {
                background: url(images/zp_4.jpg) no-repeat;
            }
        </style>
    </head>

    <body>
        <div class="body">
            <!--nav-->
            <div class="nav">
                <div class="main">
                    <ul>
                        <li>
                            <a href="#"><img src="images/logo.png" height="100%"></a>
                        </li>
                        <li>
                            <a href="index.html" class="active">博客首页</a>
                        </li>
                        <li>
                            <a href="index1.html">个人简介</a>
                        </li>
                        <li>
                            <a href="index2.html">个人作品</a>
                        </li>
                        <li>
                            <a href="index3.html">联系我</a>
                        </li>
                        <li>
                            <a href="index4.html">会员登录</a>
                        </li>
                        <li>
                            <a>
                                <p class="search">
                                    <input type="text" name="" id="" value="" placeholder="搜索" />
                                </p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
            <!--nav-->
            <!-- banner -->
            <div class="main">
                <div class="banner">
                    <embed src="images/1.swf" width="100%" height="600" quality="High" wmode="transparent" style="position: absolute;">
                    <img src="images/banner.jpg" width="100%">
                </div>
            </div>
            <div class="main">
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr style="background: #efefef;">
                        <td height="120" align="center" style="font-size: 30px; color: #515151;">
                            <p style="height: 80px;line-height: 80px;">生活点滴,不忘记录</p>
                            <table width="480" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="center">
                                        <a href="#" id="images1"></a>
                                    </td>
                                    <td align="center">
                                        <a href="#" id="images2"></a>
                                    </td>
                                    <td align="center">
                                        <a href="#" id="images3"></a>
                                    </td>
                                    <td align="center">
                                        <a href="#" id="images4"></a>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="240" align="center" valign="bottom"><img src="images/pic_1.jpg" width="224" height="224" alt="" />&nbsp;
                            <img src="images/pic_2.jpg" width="224" height="224" alt="" />&nbsp; <img src="images/pic_3.jpg" width="224"
                             height="224" alt="" />&nbsp; <img src="images/pic_4.jpg" width="224" height="224" alt="" /></td>
                    </tr>
                    <tr>
                        <td height="80" align="center" style="color: #484848">
                            <p>更多照片</p>
                            <p><img src="images/tb01.png" width="40" height="15" alt="" /></p>
                        </td>
                    </tr>
                    <tr>
                        <td height="50" align="center">
                            <table width="900" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <hr size="1">
                                    </td>
                                    <td width="150" align="center" style="font-size: 20px;">个人寄语</td>
                                    <td>
                                        <hr size="1">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="100" align="center">
                            <table width="650" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td><img src="images/zc.png" width="84" height="82" alt="" /></td>
                                    <td width="400" align="center" class="text"> 这里以后就是我的家了,也是所有喜爱我的朋友们共同的家,有<br> 什么事情大家都可以在这里畅所欲言,我也会经常来这里和大家
                                        <br> 交流的。谢谢大家的支持! </td>
                                    <td align="right"><img src="images/yc.png" width="86" height="82" alt="" /></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
            <audio src="images/music.mp3" hidden="hidden" autoplay="autoplay" loop="loop">
                当前浏览器不支持audio
            </audio>
            <div class="foot">
                &copy; Copyright 版权所有 
            </div>
        </div>
    </body>

</html>

......

2.CSS

代码如下(节选示例):

* {
    margin: 0;
    padding: 0;
    font-family: "黑体";
    font-size: 14px;
    color: #5c5c5c;
}

ul,
li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #5C5C5C;
}

html,
body {
    min-height: 1080px;
    background: url(../images/bg.jpg) no-repeat;
    background-size: 100% 100%;
}

.body {
    width: 100%;
    overflow: hidden;
}

.main {
    width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    background: #efefef;

}

/*nav*/
.nav {
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    background: #efefef;
    background-size: 100% 100%;
    text-align: center;
}
.nav ul{
    overflow: hidden;
    border-left: 1px solid #e6e6e6;
    border-right: 1px solid #e6e6e6;
}
.nav ul li {
    float: left;
}

.nav ul li a {
    line-height: 50px;
    font-weight: 700;
    display: block;
    padding: 0 20px;
}

.active {
    border-radius: 5px;
    background: #e4e3e3;

}
.search input{
    width: 100px;
    border: 1px solid #aaa;
    border-radius: 5px;
    height: 26px;

}
.search img{
    vertical-align: middle;
    margin-left: -20px;
}
.foot{
    background: #efefef;
    text-align: center;
    height: 40px;
    line-height:40px ;
}
 

......


标签:web,repeat,no,33,jpg,height,html,background,images
From: https://blog.csdn.net/A240307/article/details/136978250

相关文章

  • 使用Docker快速搭建Web服务器Nginx
    简介在现代Web开发中,Nginx作为一款高性能的Web服务器和反向代理服务器,被广泛应用于各种项目中。而使用Docker可以极大地简化服务器的部署和管理过程。本文将介绍如何利用Docker快速搭建NginxWeb服务器,并简要说明一些常见的配置和使用方法。第一步:拉取镜像在拉取镜像时,我们可......
  • SpringBoot3项目使用Knife4j时访问doc.html出现Knife4j文档请求异常且开发者工具网络
    1.在各个pom.xml中替换Knife4j的依赖版本,升级为4.0以上,如果找不到依赖可以在Maven配置中多添加几个镜像,或者使用汉化插件重启IDEA;<dependency><groupId>com.github.xiaoymin</groupId><artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId......
  • 记一次webase证书的白痴错误
    一直报错说缺少国密证书,Missedcertificates:[conf/gm/gmca.crt,conf/gm/gmsdk.crt,conf/gm/gmsdk.key,conf/gm/gmensdk.key,conf/gm/gmensdk.crt,]但是实际上用的是非国密,证书也都是正常拷贝过来的,反复尝试无果后来发现电脑开着代理,所以当前还是北京时间3月17号,但是生......
  • 【学习】Web安全测试需要考虑哪些情形
    一、数据加密某些数据需要进行信息加密和过滤后才能在客户端和服务器之间进行传输,包括用户登录密码、信用卡信息等。例如,在登录某银行网站时,该网站必须支持SSL协议,通过浏览器访问该网站时,地址栏的http变成https,建立https连接。这相当于在HTTP与TCP之间增加了一层加密——SSL......
  • Rust使用Sauron实现Web界面交互
    目录简介架构Application和组件简单入门示例先决条件创建项目编译库文件引用库文件运行项目界面交互示例创建项目编译库文件实现应用函数引用库文件运行项目参考资料简介Sauron是一个多功能的Web框架和库,用于构建客户端和/或服务器端Web应用程序,重点关注人体工程学、简单......
  • Web日志分析
    一、HTTP基础1.HTTP报文格式解析HTTP请求报文HTTP请求包括3部分,分别是请求行、请求头和请求正文。WindowsNT10.0表示操作系统内核版本号,WindowsXP内核号是NT5.1或NT5.2(64位操作系统),WindowsVista的内核版本号是NT6.0,Windows7的内核版本号是NT6.1,Windows8的......
  • 53文章解读与程序——配电网重构(IEEE333)附带WORD注释解读___已提供下载资源
    ......
  • 纯前端调用原生Office实现Web在线编辑Word/Excel/PPT,支持私有化部署
    在日常协同办公过程中,一份文件可能需要多次重复修改才能确定,如果你发送给多个人修改后再汇总,这样既效率低又容易出错,这就用到网页版协同办公软件了,不仅方便文件流转还保证不会出错。但是目前一些在线协同Office属于模拟Office,在线模拟OFFICE编辑过的文档,再用本机Office编辑都存在......
  • drf : web应用模式,RESTful API规范,接口测试工具:Postman
    drf:web应用模式,RESTfulAPI规范,接口测试工具:PostmanWeb应用模式前后端不分离前后端分离API接口前后端交互的媒介WebAPI接口和一般的url链接还是有区别的,WebAPI接口简单概括有下面四大特点。url:长得像返回数据的url链接https://api.map.baidu.com/place/v2/search......
  • 【附源码】django计算机毕业设计web的诗词信息管理平台(源码+mysql+论文)
    本系统(程序+源码)带文档lw万字以上 文末可获取本课题的源码和程序系统程序文件列表系统的选题背景和意义选题背景:在当今信息化时代,诗词作为中华民族传统文化的瑰宝,承载着丰富的历史和文化价值。然而,随着科技的发展和生活节奏的加快,人们对于诗词的接触和传承逐渐减少,尤其......