"2021年大一下网页期末作业展示:纯html css实现的网页设计作业"
需积分: 0 160 浏览量
更新于2024-04-01
1
收藏 2.12MB DOCX 举报
【相册】
.album{
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-gap: 10px;
justify-content: center;
}
.album img{
width: 100%;
height: auto;
}
【视频】
.video{
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-gap: 20px;
justify-content: center;
}
.video iframe{
width: 100%;
height: 200px;
}
【文字】
.text{
text-align: center;
}
.text p{
padding: 10px;
font-size: 1.2em;
}
【关于】
.about{
text-align: center;
}
.about img{
width: 200px;
height: 200px;
border-radius: 50%;
}
二、html文件 导航 foot区的css源代码
【首页】
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles/home.css" />
</head>
<body>
<div class="content">
<h1>Welcome to our website</h1>
<p>This is the homepage of our website. Feel free to explore!</p>
</div>
<a class="button" href="album.html">
<ul>
<li>Album</li>
</ul>
</a>
</body>
</html>
【导航栏 foot底部的css源代码】
.footer{
background-color: #333;
color: white;
text-align: center;
padding: 10px;
position: fixed;
bottom: 0;
width: 100%;
}
.footer a{
color: white;
text-decoration: none;
}
.footer a:hover{
text-decoration: underline;
}
三、页面展示总结
以上是我大一下学期的网页期末作业,使用纯html和css实现了首页、相册、视频、文字、关于等五个页面。在布局方面还有很多需要改进的地方,希望大家能提出建议和意见。同时,也希望这个作业能够给大家一些参考和启发。如果想查看更多详情,可访问b站展示链接。感谢大家的关注和支持!
311 浏览量
4559 浏览量
670 浏览量

CodingLife99
- 粉丝: 1275
最新资源
- VS2010环境Qt链接MySQL数据库测试程序
- daycula-vim主题:黑暗风格的Vim色彩方案
- HTTPComponents最新版本发布,客户端与核心组件升级
- Android WebView与JS互调的实践示例
- 教务管理系统功能全面,操作简便,适用于winxp及以上版本
- 使用堆栈实现四则运算的编程实践
- 开源Lisp实现的联合生成算法及多面体计算
- 细胞图像处理与模式识别检测技术
- 深入解析psimedia:音频视频RTP抽象库
- 传名广告联盟商业正式版 v5.3 功能全面升级
- JSON序列化与反序列化实例教程
- 手机美食餐饮微官网HTML源码开源项目
- 基于联合相关变换的图像识别程序与土豆形貌图片库
- C#毕业设计:超市进销存管理系统实现
- 高效下载地址转换器:迅雷与快车互转
- 探索inoutPrimaryrepo项目:JavaScript的核心应用