css html 方格,使用CSS创建方格背景
发布日期:2021-10-31 15:52:46 浏览次数:3 分类:技术文章

本文共 1715 字,大约阅读时间需要 5 分钟。

这里是一个什么样的格仔背景看起来在图形设计编辑器,如Photoshop或Illustrator的翻版。 (所有的CSS)

.checkered{

height: 240px;

background: -webkit-linear-gradient(45deg, rgba(0, 0, 0, 0.0980392) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.0980392) 75%, rgba(0, 0, 0, 0.0980392) 0), -webkit-linear-gradient(45deg, rgba(0, 0, 0, 0.0980392) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.0980392) 75%, rgba(0, 0, 0, 0.0980392) 0), white;

background: -moz-linear-gradient(45deg, rgba(0, 0, 0, 0.0980392) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.0980392) 75%, rgba(0, 0, 0, 0.0980392) 0), -moz-linear-gradient(45deg, rgba(0, 0, 0, 0.0980392) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.0980392) 75%, rgba(0, 0, 0, 0.0980392) 0), white;

background: linear-gradient(45deg, rgba(0, 0, 0, 0.0980392) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.0980392) 75%, rgba(0, 0, 0, 0.0980392) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.0980392) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.0980392) 75%, rgba(0, 0, 0, 0.0980392) 0), white;

background-repeat: repeat, repeat;

background-position: 0px 0, 5px 5px;

-webkit-transform-origin: 0 0 0;

transform-origin: 0 0 0;

-webkit-background-origin: padding-box, padding-box;

background-origin: padding-box, padding-box;

-webkit-background-clip: border-box, border-box;

background-clip: border-box, border-box;

-webkit-background-size: 10px 10px, 10px 10px;

background-size: 10px 10px, 10px 10px;

-webkit-box-shadow: none;

box-shadow: none;

text-shadow: none;

-webkit-transition: none;

-moz-transition: none;

-o-transition: none;

transition: none;

-webkit-transform: scaleX(1) scaleY(1) scaleZ(1);

transform: scaleX(1) scaleY(1) scaleZ(1);

}

你可以在我的笔看到一个工作示例here

转载地址:https://blog.csdn.net/weixin_39987847/article/details/118257454 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:计算机专业考研可关注哪些公众号,考研应关注哪些公众号?
下一篇:形容计算机网络教室的成语,形容教育的成语

发表评论

最新留言

逛到本站,mark一下
[***.202.152.39]2024年03月27日 08时47分32秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章