哈利路亚
Let's take one million years picnic
欢迎来到Sean Cleveland的博客
JAVA学习日报 11/6

今天是11月6号,那么来履行昨天的约定,来看看div吧

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>

<head>
<style>
#header {
    background-color:black;
    color:white;
    text-align:center;
    padding:5px;
}
#nav {
    line-height:30px;
    background-color:#eeeeee;
    height:300px;
    width:100px;
    float:left;
    padding:5px;          
}
#section {
    width:350px;
    float:left;
    padding:10px;          
}
#footer {
    background-color:black;
    color:white;
    clear:both;
    text-align:center;
   padding:5px;          
}
</style>
</head>

<body>

<div id="header">
<h1>这里是标题</h1>
</div>

<div id="nav">
测试1<br>
测试2<br>
测试3<br>
</div>

<div id="section">
<h2>测试文本</h2>
<p>
这什么也不是没必要看
</p>
<p>
测试文本测试文本
</p>
</div>

<div id="footer">
测试文本
</div>

</body>
</html>

这个的页面效果是这样的:

 

 虽然美化实在不过关,但起码有点那个意思了也还是不错的

好,今天就是这样啦(逃)

posted on 2020-11-06 22:01  哈利路亚#0207  阅读(55)  评论(0编辑  收藏  举报
Live2D