html的网页制作代码分享

7 篇文章 0 订阅
6 篇文章 0 订阅
<!--  prj_8_2.html  -->
<!DOCTYPE html>
<html  lang  ="EN">
	<head>
		<meta   charset="utf-8" />
		<title>页面布局设计</title>
		<style type ="text/css">
			*{
				padding: 0px;
				margin:0px;
				}
			#header{
				background: url('prj_8_2_logo.png') #4B5B6B   no-repeat  top  left;
				width:100%;
				height:60px;
			}
			#nav{
				width:100%;
				height:80px;
			}
			ul{
				list-style-type: none;
				width:100%;
				height:80px;
				background:#D0C0B0;
				text-align:center;
			}
			li{
				font-size:20px;
				padding:20px 10px;
				display: inline-block;
				width: 160px;
				height: 40px;
				
			}
			
			a:active,
			a:link,
			a:visited{
				text-decoration: none;
				
			}
			a:hover{
				background: #CCFF99;
				height: 80px;
				width:160px;
				padding:20px 10px;
				}
			#main{
				width:100%;
				height:500px;
				background: #FEFEFE
			}
			#article{
				width:75%;
				height: 500px;
				background: #DBDACA;
				float: left;
			
			}
			.section{
				width: 320px;
				height:440px;
				float:left;
				border:1px  dashed   #006600;
				text-align: middle;
				margin: 20px;
			}
			
			img{
				width: 300px;
				height: 400px;
				margin: 10px;
				
			}
			#aside{
				width:20%;
				height: 500px;
				background: #9F9F9A;
				float: right;
				text-align: center;
				vertical-align: middle;
			}
			#footer{
				clear: both;
				width:100%;
				height:80px;
				background: #EAEADA;
				padding:20px auto;
				text-align: center;
			}
			
			#footer p{
				font-size: 20px;
				padding-top: 25px;
				height:25px;
			}
			
			
		</style>
	</head>
	<body>
		<header  id="header"></header>
		<nav id="nav">
			
			<ul>
				<li>
					<a herf="#">首页</a>
				</li>
				<li>
					<a herf="#">HTML5  </a>
				</li>
				<li>
					<a herf="#">CSS3</a>
				</li>
				<li>
					<a herf="#">JavaScript</a>
				</li>
				<li>
					<a herf="#">DOM</a>
				</li>
				<li>
					<a herf="#">BOM</a>
				</li>
			</ul>
		</nav>
		<div  id="main">
			<article id="article">
				<section   calss="section">
					<img  src="img/prj_8_2_html5_logo.png">
				</section>
				<section class="section">
					
					<img  src="img/prj_8_2_css3_logo.png">
				</section>
				<section class="section">
					
					<img  src="img/prj_8_2_javascript_logo.png"/>
				</section>
			</article>
			<aside  id="aside">
				<figure>
					<img  src="img/prj_8_2_html5.png">
					<figcaption>HTML5结构元素侧边aside</figcaption>
				</figure>
			</aside>
		</div>
		<footer id="footer">
		<p>
			Copyright &copy;2017-2020 Web  前端开发工作室-  业务开发-网站建设
		</p>
		</footer>
	</body>
</html>

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
好的,下面是一个简单的个人博客HTML网页制作代码,您可以根据自己的需求进行修改和美化: ```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>我的个人博客</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"> </head> <body> <nav class="navbar navbar-expand-lg navbar-light bg-light"> <a class="navbar-brand" href="#">我的个人博客</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarNav"> <ul class="navbar-nav"> <li class="nav-item active"> <a class="nav-link" href="#">首页<span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="#">关于我</a> </li> <li class="nav-item"> <a class="nav-link" href="#">博客文章</a> </li> <li class="nav-item"> <a class="nav-link" href="#">联系我</a> </li> </ul> </div> </nav> <div class="container my-5"> <div class="row"> <div class="col-md-4"> <img src="https://via.placeholder.com/150" alt="我的照片" class="img-fluid rounded-circle"> </div> <div class="col-md-8"> <h1>欢迎来到我的个人博客</h1> <p>我是一名程序员,喜欢写博客和分享学习心得。欢迎来到我的博客,希望我的文章对您有所帮助。</p> <p>您可以在我的博客上找到各种有趣的技术文章,包括Web开发、人工智能、机器学习等方面的内容。</p> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-md-4"> <div class="card my-3"> <img src="https://via.placeholder.com/150" alt="博客文章1" class="card-img-top"> <div class="card-body"> <h5 class="card-title">博客文章1</h5> <p class="card-text">这是一篇有关Web开发的文章,讲解了如何使用Bootstrap框架快速搭建网页。</p> <a href="#" class="btn btn-primary">阅读全文</a> </div> </div> </div> <div class="col-md-4"> <div class="card my-3"> <img src="https://via.placeholder.com/150" alt="博客文章2" class="card-img-top"> <div class="card-body"> <h5 class="card-title">博客文章2</h5> <p class="card-text">这是一篇有关人工智能的文章,讲解了如何使用Python编写机器学习算法。</p> <a href="#" class="btn btn-primary">阅读全文</a> </div> </div> </div> <div class="col-md-4"> <div class="card my-3"> <img src="https://via.placeholder.com/150" alt="博客文章3" class="card-img-top"> <div class="card-body"> <h5 class="card-title">博客文章3</h5> <p class="card-text">这是一篇有关机器学习的文章,讲解了如何使用TensorFlow框架训练深度神经网络。</p> <a href="#" class="btn btn-primary">阅读全文</a> </div> </div> </div> </div> </div> <div class="container my-5"> <div class="row"> <div class="col-md-12"> <h2>联系我</h2> <p>如果您有任何问题或者建议,请随时联系我。</p> <form> <div class="form-group"> <label for="name">姓名</label> <input type="text" class="form-control" id="name" placeholder="请输入您的姓名"> </div> <div class="form-group"> <label for="email">邮箱</label> <input type="email" class="form-control" id="email" placeholder="请输入您的邮箱"> </div> <div class="form-group"> <label for="message">留言</label> <textarea class="form-control" id="message" rows="3"></textarea> </div> <button type="submit" class="btn btn-primary">提交</button> </form> </div> </div> </div> <footer class="bg-light py-3"> <div class="container"> <div class="row"> <div class="col-md-12 text-center"> Copyright © 2020 </div> </div> </div> </footer> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper"> </script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script> </body> </html> ``` 此代码使用了Bootstrap框架来美化网页,其中包括导航栏、响应式布局、卡片和表单等元素。您可以根据自己的需求进行修改和美化,例如更换图片、添加文章内容等。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

jing静~

ლ(°◕‵ƹ′◕ლ)让我一键努

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值