zoukankan      html  css  js  c++  java
  • zindex可以使用负值

    z-index经常被赋正值,但它其实可以为负值的,ie和ff都兼容。写特殊效果时可以试试。

    =====================================
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>阿当制作</title>
    </head>
    <style type="text/css">
    .head{height:200px;background:#000;margin-left:50px;}
    .layer{100px;height:100px;background:green;position:absolute;left:0;top:0;z-index:-2;}
    .layer2{100px;height:100px;background:yellow;position:absolute;left:20px;top:50px;z-index:-1;}
    </style>
    <body>
    <div class="head"></div>
    <div class="layer"></div>
    <div class="layer2"></div>
    </body>
    </html>
    ================================
  • 相关阅读:
    第三章 AOP
    第二章 IoC
    第一章 Spring 概述
    框架整合
    后台管理工程搭建
    技术架构
    淘淘商城简介
    电商行业背景
    前言
    FutureTask的使用
  • 原文地址:https://www.cnblogs.com/cly84920/p/4426959.html
Copyright © 2011-2022 走看看