利用CSS和DIV的几种布局方法(2)
来源:互联网 发布:php mongodb连接池配置 编辑:程序博客网 时间:2024/06/11 06:52
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="Generator" content="EditPlus®">
- <meta name="Author" content="">
- <meta name="Keywords" content="">
- <meta name="Description" content="">
- <title>This is my test about css.</title>
- <style>
- *{
- padding:0px;
- margin:0px;}
- #container{
- width:100%;
- background-color:orange;
- border:1px solid black;
- padding:10px;
- text-align:center;
- font-family:arial;
- font-size:20px;}
- #container h1{
- text-decoration:underline;
- background-color:gray;
- margin-bottom:10px;
- }
- #main,#container h1{
- position:relative;
- width:900px;
- left:50%;
- margin-left:-460px;
- padding:10px;
- }
- #main{
- height:600px;
- background-color:gray;
- border:1px dashed red;
- text-align:left;
- font-size:75%;
- line-height:1.5em;
- }
- </style>
- </head>
- <body>
- <div id="container">
- <h1>This is my test about css.</h1>
- <div id="main">This is first test.This is first test.This is first test.This is first test.<br />
- This is first test.This is first test.This is first test.This is first test.<br />
- This is first test.This is first test.This is first test.This is first test.<br />
- This is first test.This is first test.This is first test.This is first test.<br />
- This is first test.This is first test.This is first test.This is first test.<br />
- This is first test.This is first test.This is first test.This is first test.<br />
- This is first test.This is first test.This is first test.This is first test.<br />
- </div>
- </div>
- </body>
- </html>
0 0
- 利用CSS和DIV的几种布局方法(2)
- 利用CSS和DIV的几种布局方法(2)
- 利用CSS和DIV的几种布局方法(1)
- 利用CSS和DIV的几种布局方法(3)
- 利用CSS和DIV的几种布局方法(4)
- 利用CSS和DIV的几种布局方法(1)
- 利用CSS和DIV的几种布局方法(3)
- 利用CSS和DIV的几种布局方法(4)
- 利用div+css实现几种经典布局的详解,样式以及代码!
- div+css的几种常用的布局
- div+css布局漫谈 之 CSS布局常用的方法
- DIV和CSS排版中制作细线条的几种方法
- html中div如何水平和垂直居中的几种css方法代码
- 屏幕居中(DIV/CSS) 的几种方法
- css 实现div垂直居中的几种方法
- 图解DIV-CSS布局中绝对定位和浮动用法(两种分三栏布局的方法)
- 如何利用CSS+DIV 实现三列自适应高和宽的布局(不用javascript)
- DIV+CSS布局的优势和弊端
- [34] Vijos P1002 过河(动态规划+状态压缩)
- Context都没弄明白,还怎么做Android开发?
- EventBus源码解析二
- android的定时器
- 三维观察流水线的理解
- 利用CSS和DIV的几种布局方法(2)
- knockoutjs ajax请求,然后输出到模板
- 深入浅出RxJava(一:基础篇)
- ERR_CONTENT_LENGTH_MISMATCH问题
- JavaWeb中Servlet和JSP的分工案例
- 解决for循环项问题
- CentOS 安装Python 3.52
- 矩阵求导公式
- c3p0-config.xml文件基本配置