a标签的四种状态

  a:link;   /* 未访问的链接 */

  a:visited;   /* 已访问的链接 */

  a:hover;  /* 当有鼠标悬停在链接上 */ a:hover 必须位于 a:link 和 a:visited 之后,这样才能生效!

  a:active;  /* 被选择的链接点击 */  a:active 必须位于 a:hover 之后,这样才能生效!

块标签:div、p, h1~h6, div, ul等;

  块级元素 block 如 div h1 p ul li等 会换行 想在同一行显示 需浮动或者display: inline  设置宽高。margin paddding可以设置.

行标签:a、img, span, li, br等;

  行级元素 inline 如 a span b 多个可以并排显示 默认设置宽度是不起作用 需设置 display: inline-block或者block才行 不能设置宽高。maigin padding只能设置水平方向.

随机推荐

  1. 开源日志系统比较:scribe、chukwa、kafka、flume

    1. 背景介绍 许多公司的平台每天会产生大量的日志(一般为流式数据,如,搜索引擎的pv,查询等),处理这些日志需要特定的日志系统,一般而言,这些系统需要具有以下特征: (1) 构建应用系统和分析系统的 ...

  2. POJ2524:Ubiquitous Religions (并查集模板)

    Description There are so many different religions in the world today that it is difficult to keep tr ...

  3. Python 学习笔记2

    今天继续安装配置python. Fear can hold you prisoner. Hope can set you free.

  4. docker log 文件 清理

    1 查看docker log 文件位置  docker inspect *** 2 定时清理 runcate -s 0 /var/lib/docker/containers/*/*-json.log

  5. Ubuntu 下安装 nfs

    1先安装sudo apt-get install nfs-kernel-server(安装nfs-kernel-server时,apt会自动安装nfs-common和portmap) 分开看就是1.服 ...

  6. linux服务器无法显示tomcat详细错误信息

    严重: One or more listeners failed to start. Full details will be found in the appropriate container l ...

  7. 使用shell脚本自定义实现选择登录ssh

    在系统bin目录中建立两个脚本分别是pssh tssh pssh #!/usr/bin/expect -f set ip [lindex ] set port [lindex ] set passwo ...

  8. perl-cgi基础

    来源: http://www.cnblogs.com/itech/archive/2012/09/22/2698553.html 代码: http://xxxxx/cgi/perl-cgi.cgi?n ...

  9. centos mono

    wget http://download.mono-project.com/sources/mono/mono-4.0.1.tar.bz2wget http://download.mono-proje ...

  10. docker !veth

    https://github.com/docker/docker/issues/11889