关于CSS布局页面的简单组合方式:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS格式与布局</title> <style type="text/css"> *{ margin:0px auto; padding:0px; font-family:微软雅黑}/*注意*/
/*.创造力{ width:200px; height:200px; background-color:#F00; margin:10px 0px 0px 10px; float:left}
*/
#menu{ width:1200px; height:45px; background:#90F; margin-top:20px}
.text{ width:200px; height:45px; float:left; text-align:center; line-height:45px; vertical-align:middle}
.text:hover{ background-color:#000; color:#F00; cursor:pointer}
/*鼠标放上来*/
</style> </head> <body> <ol style="list-style:none">
<li>足球</li>
<li>篮球</li>
<li>羽毛球</li>
</ol> <ol style="list-style-image:url(../IMG/QQ%E5%9B%BE%E7%89%8720170711193040.gif)">
<li>足球</li>
<li>篮球</li>
<li>羽毛球</li>
</ol> <div style="width:300px; height:300px; background-color:#0F0; position:fixed; top:20px; left:20px" ></div> <div style="width:200px; height:500px; background-color:#099"></div>
<div style="width:200px; height:500px; background-color:#060"></div>
<div style="width:200px; height:500px; background-color:#055"></div> <div style="width:200px; height:500px; background-color:#099"></div>
<div style="width:200px; height:500px; background-color:#060"></div>
<div style="width:200px; height:500px; background-color:#055"></div> <div style="width:400px; height:400px; position:absolute; top:100px; left:100px">
<div style="width:300px; height:300px; background-color:#0F0; position:absolute; top:50px; left:50px">
</div>
</div> <div style="width:200px; height:500px; background-color:#099"></div>
<div style="width:200px; height:500px; background-color:#060"></div>
<div style="width:200px; height:500px; background-color:#055"></div> <div style="width:300px; height:300px; background-color:#0F0; position:absolute; top:200px; left:200px">
</div> <div style="width:300px; height:300px; background-color:#0F0; position:relative">
</div> <div class="创造力">1</div>
<div class="创造力">2</div>
<div class="创造力">3</div>
<div class="创造力">4</div>
<div class="创造力">5</div>
<div class="创造力">6</div> <div style="clear:both"></div> <div style="width:800px; height:500px; background-color:#0F0"></div> <div id="menu">
<div class="text">首页</div>
<div class="text">产品介绍</div>
<div class="text">产品图片</div>
<div class="text">产品参数</div>
<div class="text">关于服务</div>
<div class="text">联系我们</div>
</div> </body>
</html>

利用CSS简单布局的不同组合类型的更多相关文章

  1. 慕课笔记利用css进行布局【混合布局练习】

    通过学习div的布局,以一个简单的内容管理网站的布局为例子,用div+css进行简单的网页布局,加深学印象: <html> <head> <title>CSS+di ...

  2. 慕课笔记利用css进行布局【混合布局】

    <html> <head> <title>混合布局学习</title> <style type="text/css"> ...

  3. 慕课笔记利用css进行布局【三列布局】

    三个div中间自适应,两侧固定大小 <html> <head> <title>三列布局</title> <style type="tex ...

  4. 慕课笔记利用css进行布局【两列布局】

    <html> <head> <title>两列布局</title> <style type="text/css"> bo ...

  5. 慕课笔记利用css进行布局【一列布局】

    <html> <head> <title>一列布局</title> <style type="text/css"> bo ...

  6. CSS简单布局总结

    display  block       块级元素,占据一行 none       隐藏 inline      允许同一行显示,但不再有宽和高 inline-block   允许在一行的块级元素,可 ...

  7. 简单实用的CSS网页布局中文排版技巧

    由于汉字的特殊性,在css网页布局中,中文排版有别于英文排版.排版是一个麻烦的问题,小编认为,作为一个优秀的网页设计师和网页制作人员,掌握一些简单的中文排版技巧是不可或缺的,所以今天特意总结了几个简单 ...

  8. 【转】一个DIV+CSS代码布局的简单导航条

    原文地址:http://www.divcss5.com/shili/s731.shtml 简单的DIV CSS代码布局实现导航条 一个蓝色主题的导航条布局案例,本CSS小实例,采用DIV CSS实现. ...

  9. CSS简单的网页布局

    1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="U ...

随机推荐

  1. mongodb远程连接配置

    mongodb远程连接配置如下: 1.修改配置文件mongodb.conf 命令:vim /etc/mongodb.conf 把 bind_ip=127.0.0.1 这一行注释掉或者是修改成 bind ...

  2. (转载)在spring的bean中注入内部类

    原文链接:http://outofmemory.cn/java/spring/spring-DI-inner-class 在spring中注入内部类,有可能会遇到如下异常信息: 2014-5-14 2 ...

  3. ReIn

    package JBJADV003; import java.io.*;import java.util.Scanner; public class ReIn { /** * @param args ...

  4. vue--指令中值得随笔的地方

    v-model-- 双向数据绑定 number修饰指令 <!DOCTYPE html> <html lang="en"> <head> < ...

  5. Tkinter开发第一个桌面程序HelloWorld

    在Python3中是tkinter,Python2中是Tkinter Tkinter是Python 官方承认的标准 GUI 方案(de-facto standard),因为是Python自带安装,决定 ...

  6. PHP获取文件夹中的所有文件(包括子目录)

    方法一: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 function tree($directory) ...

  7. Python--my first try!

    我所用的编译器是:Python 3.6.0 我之所以在一开始就说我的编译器是因为不同的编译器,不同的版本在代码的写法上会有一些区别! 比如:在我所用的版本3中print的用法是Print (" ...

  8. docker~写个容器启动的bash脚本

    回到目录 bash脚本在linux里就相当于win里的bat和cmd及ps脚本,可以把一般指令组织在一起,统一去执行,比如我有一些docker容器需要统一去启动,这时,你可以把它们写成一个bash脚本 ...

  9. Spring初学

    一.spring体系结构spring核心组件 1.Beans(包装应用程序自定义对象Object,Object中存有数据) 2.Core (资源加载,资源抽象,建立维护与bean之间的一些关系所需的一 ...

  10. jenkins,SVN构建总是clean目录,回归失败

    近期发现配置的jenkins任务打包时间极长,经过定位为svn版本的问题,不同的svn版本.svn的信息存在不一致. 解决: 升级服务器svn版本. 调整jenkins系统设置: 测试通过(回滚成功) ...