展会信息港展会大全

css div 边框阴影 android软件开发教程
来源:互联网   发布日期:2016-03-25 16:16:46   浏览:2283次  

导读:css div 边框阴影本篇文章是讲关于css 边框阴影效果代码,我们讲了两种实现方法一种是利用内外层的div边框来实例层次感觉的css边框阴影效果,另一种是利用了背景图片再加内外div来实现的这...

css div 边框阴影本篇文章是讲关于css 边框阴影效果代码,我们讲了两种实现方法一种是利用内外层的div边框来实例层次感觉的css边框阴影效果,另一种是利用了背景图片再加内外div来实现的这种效果更漂亮。

<head>

<meta http-equiv="content-type" content="text/html; charset=gb2312" />

<title>css div 边框阴影</title>

<style type="text/css">

body {padding: 200px;}

div {border-width: 1px; border-style: solid; padding: 1px;}

.a {background-color: #f3f3f3; border-color: #fbfbfb;}

.b {background-color: #d8d8d8; border-color: #e8e8e8;}

.c {background-color: #fff; border-color: #bbb; height: 100px;color:#ff0000;}

</style>

</head>

<body>

<div class="a">

<div class="b">

<div class="c">边框为阴影效果</div>

</div>

</div>

</body>

</html>

复杂一点的利用图片背景

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.111cn.net/tr/xhtml1/dtd/xhtml1-transitional.dtd">

<html xmlns="http://www.111cn.net/1999/xhtml">

<head>

<title>css边框阴影</title>

<style>

.drops教程hadow2{

float:left;

clear:left;

background: url(http://www.111cn.net/img/20090623190955357.png) no-repeat bottom right !important;

background: url(http://www.111cn.net/img/20090623190955450.gif) no-repeat bottom right;

margin: 10px 0 10px 10px !important;

margin: 10px 0 10px 5px;

width: 500px;

padding: 0px;

}

.innerbox{

position:relative;

bottom:6px;

right: 6px;

border: 1px solid #999999;

padding:4px;

margin: 0px 0px 0px 0px;

}

.innerbox{

/* ie5 hack www.aimeige.com.cn */

margin: 0px 0px -3px 0px;

margin:0px 0px 0px 0px;

}

.innerbox p{

font-size:14px;

margin: 3px;

}

</style>

</head>

<body>

<div class="dropshadow2"><div class="innerbox"><h4>css阴影:</h4><p>这段边框阴影效果怎么样呢?</p></div></div>

</body>

</html>

赞助本站

人工智能实验室

相关热词: 开发 编程 android

AiLab云推荐
推荐内容
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港