个⼈⽹站—⾸页HTML+CSS(超级简单的那种)
这是⼀个刚学web的学⽣写的⼤作业的⼀部分。
⼤佬们不需要看。
先上效果展⽰
介绍⼀下页⾯布局
整体就是⼀个很简单的三⾏三列式布局。
上边有⼀条header。
中间是main(⾥⾯是三列left center right)
left部分:调了⼀下div的css⽤的矩形边框,背景是⼀个图⽚。
center部分:就是⼀个竖向的导航栏。
right部分:跟left部分差不多。
countblank函数的使用方法
下边也有⼀条footer。
css部分
<style type="text/css">
body{text-align: center;}
#header{width: 100%;height: 30px;}
#main{width: 100%;height: 560px;}
#left{width: 400px;height: 400px;float: left;border-radius:300px;background:url(12.jpg);}
#center{width: 20%;height: 100%;float: left;}
#right{width: 43%;height: 81%;float: left;background:url(a.gif);border-radius:100px;}
#footer{clear: both;width: 100%;height: 80px;}
ul{list-style-type:none;margin:0;padding:0;width: 800px;height: 100%}
a{display:block;background-color:#E3BDAA;color:black;width:160px;text-align:center;padding:25px;text-decoration:none;font-family:幼圆;font-size: 18pt;border-radius:80px;}
a:hover,a:active{background-color:#98bf21;}
h4{font-size: 20pt;font-family:幼圆;color:black}
h1{font-size: 30pt;font-family:幼圆;color:black}数据库api接口是什么
</style>
所有的代码
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>⾸页</title>
<style type="text/css">
strip是什么意思
body{text-align: center;}
#header{width: 100%;height: 30px;}
#main{width: 100%;height: 560px;}
#left{width: 400px;height: 400px;float: left;border-radius:300px;background:url(12.jpg);}
#center{width: 20%;height: 100%;float: left;}
如何关闭tablet pc键盘#right{width: 43%;height: 81%;float: left;background:url(a.gif);border-radius:100px;}html滚动条固定一个位置
#footer{clear: both;width: 100%;height: 80px;}
html个人网页完整代码怎么看ul{list-style-type:none;margin:0;padding:0;width: 800px;height: 100%}
a{display:block;background-color:#E3BDAA;color:black;width:160px;text-align:center;padding:25px;text-decoration:none;font-family:幼圆;font-size: 18pt;border-radius:80px;}
a:hover,a:active{background-color:#98bf21;}
h4{font-size: 20pt;font-family:幼圆;color:black}
h1{font-size: 30pt;font-family:幼圆;color:black}
</style>
</head>
<body background="1.jpg">
<div id="header"></div>
<div id="main">
<div id="left"class="">
</div>
<div id="center">
<ul>
<a href="./⾸页.html"><span>⾸页</span></a><br>
<a href="./注册页.html"><span>注册页</span></a><br>
<a href="./爱好介绍页.html"><span>爱好介绍页</span></a><br>
<a href="./爱看的视频页.html"><span>爱看的视频页</span></a><br>
<a href="./⾳乐页/⾳乐页⾯.html"><span>⾳乐页⾯</span></a><br>
<a href="./职业规划页.html"><span>职业规划页</span></a><br>
</ul>
</div>
<div id="right">
<h4>姓名:余桦班级:19软⼯A2</h4>
<h4>学号:***********</h4>
</div>
</div>
<div id="footer"class="">
<ul>
<h4>本⽹页制作⼈为:余桦制作⽇期:2021年1⽉11⽇</h4>
</ul>
</div>
</body>
</html>
以上就是个⼈⽹站的⾸页部分了。
第⼀次写博客记录⼀下⾃⼰的学习,加油鸭ヾ(◍°∇°◍)