纯CSS3绘制的砖墙效果代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 纯CSS3绘制的砖墙效果代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

纯CSS3绘制的砖墙效果代码

HTML代码(index.html):

<!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 charset="utf-8">
<title>纯CSS3绘制的砖墙效果代码</title>
<link href="css/zzsc.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="wall"><h1>ANOTHER BRICK<br>IN<br>内容</h1></div>
</body>
</html>

CSS代码(zzsc.css):

.wall{width:600px;height:300px;margin:50px auto;font-family:'Shadows Into Light',cursive;text-align:center;color:#000;background-image:-webkit-radial-gradient(center center,ellipse farthest-corner,transparent 0%,transparent 10%,rgba(0,0,0,0.8) 100%),-webkit-linear-gradient(top,#555 0%,#555 1px,transparent 1px,transparent 14px,#555 14px,#555 16px,transparent 16px,transparent 29px,#555 29px,#555 30px),-webkit-linear-gradient(45deg,#ddd 0%,#ddd 25%,transparent 25%,transparent 75%,#eee 75%,#eee 100%),-webkit-linear-gradient(45deg,#eee 0%,#eee 25%,transparent 25%,transparent 75%,#ddd 75%,#ddd 100%),-webkit-linear-gradient(left,#555 0px,#555 1px,transparent 1px,transparent 14px,#555 14px,#555 16px,transparent 16px,transparent 29px,#555 29px,#555 30px),-webkit-linear-gradient(45deg,#ddd 0%,#ddd 25%,transparent 25%,transparent 75%,#eee 75%,#eee 100%),-webkit-linear-gradient(45deg,#eee 0%,#eee 25%,transparent 25%,transparent 75%,#ddd 75%,#ddd 100%);background-image:-moz-radial-gradient(center center,ellipse farthest-corner,transparent 0%,transparent 10%,rgba(0,0,0,0.8) 100%),-moz-linear-gradient(top,#555 0%,#555 1px,transparent 1px,transparent 14px,#555 14px,#555 16px,transparent 16px,transparent 29px,#555 29px,#555 30px),-moz-linear-gradient(45deg,#ddd 0%,#ddd 25%,transparent 25%,transparent 75%,#eee 75%,#eee 100%),-moz-linear-gradient(45deg,#eee 0%,#eee 25%,transparent 25%,transparent 75%,#ddd 75%,#ddd 100%),-moz-linear-gradient(left,#555 0px,#555 1px,transparent 1px,transparent 14px,#555 14px,#555 16px,transparent 16px,transparent 29px,#555 29px,#555 30px),-moz-linear-gradient(45deg,#ddd 0%,#ddd 25%,transparent 25%,transparent 75%,#eee 75%,#eee 100%),-moz-linear-gradient(45deg,#eee 0%,#eee 25%,transparent 25%,transparent 75%,#ddd 75%,#ddd 100%);background-image:-ms-radial-gradient(center center,ellipse farthest-corner,transparent 0%,transparent 10%,rgba(0,0,0,0.8) 100%),-ms-linear-gradient(top,#555 0%,#555 1px,transparent 1px,transparent 14px,#555 14px,#555 16px,transparent 16px,transparent 29px,#555 29px,#555 30px),-ms-linear-gradient(45deg,#ddd 0%,#ddd 25%,transparent 25%,transparent 75%,#eee 75%,#eee 100%),-ms-linear-gradient(45deg,#eee 0%,#eee 25%,transparent 25%,transparent 75%,#ddd 75%,#ddd 100%),-ms-linear-gradient(left,#555 0px,#555 1px,transparent 1px,transparent 14px,#555 14px,#555 16px,transparent 16px,transparent 29px,#555 29px,#555 30px),-ms-linear-gradient(45deg,#ddd 0%,#ddd 25%,transparent 25%,transparent 75%,#eee 75%,#eee 100%),-ms-linear-gradient(45deg,#eee 0%,#eee 25%,transparent 25%,transparent 75%,#ddd 75%,#ddd 100%);background-image:-o-radial-gradient(center center,ellipse farthest-corner,transparent 0%,transparent 10%,rgba(0,0,0,0.8) 100%),-o-linear-gradient(top,#555 0%,#555 1px,transparent 1px,transparent 14px,#555 14px,#555 16px,transparent 16px,transparent 29px,#555 29px,#555 30px),-o-linear-gradient(45deg,#ddd 0%,#ddd 25%,transparent 25%,transparent 75%,#eee 75%,#eee 100%),-o-linear-gradient(45deg,#eee 0%,#eee 25%,transparent 25%,transparent 75%,#ddd 75%,#ddd 100%),-o-linear-gradient(left,#555 0px,#555 1px,transparent 1px,transparent 14px,#555 14px,#555 16px,transparent 16px,transparent 29px,#555 29px,#555 30px),-o-linear-gradient(45deg,#ddd 0%,#ddd 25%,transparent 25%,transparent 75%,#eee 75%,#eee 100%),-o-linear-gradient(45deg,#eee 0%,#eee 25%,transparent 25%,transparent 75%,#ddd 75%,#ddd 100%);background-image:radial-gradient(center center,ellipse farthest-corner,transparent 0%,transparent 10%,rgba(0,0,0,0.8) 100%),linear-gradient(top,#555 0%,#555 1px,transparent 1px,transparent 14px,#555 14px,#555 16px,transparent 16px,transparent 29px,#555 29px,#555 30px),linear-gradient(45deg,#ddd 0%,#ddd 25%,transparent 25%,transparent 75%,#eee 75%,#eee 100%),linear-gradient(45deg,#eee 0%,#eee 25%,transparent 25%,transparent 75%,#ddd 75%,#ddd 100%),linear-gradient(left,#555 0px,#555 1px,transparent 1px,transparent 14px,#555 14px,#555 16px,transparent 16px,transparent 29px,#555 29px,#555 30px),linear-gradient(45deg,#ddd 0%,#ddd 25%,transparent 25%,transparent 75%,#eee 75%,#eee 100%),linear-gradient(45deg,#eee 0%,#eee 25%,transparent 25%,transparent 75%,#ddd 75%,#ddd 100%);background-position:0 0,0 0,13px 0,28px 15px,0 0,0 0,15px 15px;background-size:600px 300px,30px 30px,30px 30px,30px 30px,30px 30px,30px 30px,30px 30px;background-repeat:repeat;}
.wall h1{padding:75px;margin:0;font-size:50px;line-height:50px;text-shadow:0 5px 5px rgba(0,0,0,0.9);}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
1.32 KB
Html CSS3特效
最新结算
股权转让协议意向书模板
类型: .docx 金额: CNY 2.23¥ 状态: 待结算 详细>
股权转让协议意向书模板
类型: .docx 金额: CNY 0.28¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 2.39¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 0.3¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章