加入收藏 | 设为首页 | 会员中心 | 我要投稿 源码网 (https://www.900php.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 系统 > 正文

css样式常见图形效果展示的实例代码

发布时间:2020-12-02 06:25:51 所属栏目:系统 来源:网络整理
导读:副标题#e# 简单写一下常见的基础图形,以及一些遇到的样式小图标 下图是css效果: 各个图形的代码如下: Square(正方形) /*正方形*/.square {width: 60px;height: 60px;background: red;} Circle(圆形) /*圆形*/ /* 可以使用百分比值(大于30%),但是低版本

/*太极阴阳图形*/ .yin-yang { width: 96px; height: 48px; background: #eee; border-color: #000; border-style: solid; border-width: 2px 2px 50px 2px; border-radius: 100%; position: relative; } .yin-yang:before { content: ""; position: absolute; top: 50%; left: 0; background: #eee; border: 18px solid #000; border-radius: 100%; width: 12px; height: 12px; } .yin-yang:after { content: ""; position: absolute; top: 50%; left: 50%; background: #000; border: 18px solid #eee; border-radius: 100%; width: 12px; height: 12px; }

Talk Bubble(聊天框)

/*聊天框*/ .talkbubble { width: 120px; height: 80px; margin-left: 20px; background: red; position: relative; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; }

Magnifying Glass(放大镜)

/*放大镜*/ .magnifying-glass { font-size: 10em; /* This controls the size. */ display: inline-block; width: 0.4em; height: 0.4em; border: 0.1em solid red; position: relative; border-radius: 0.35em; } .magnifying-glass::before { content: ""; display: inline-block; position: absolute; right: -0.25em; bottom: -0.1em; border-width: 0; background: red; width: 0.35em; height: 0.08em; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); }

到此这篇关于css样式常见图形效果展示的文章就介绍到这了,更多相关css样式图形效果展示内容请搜索脚本之家以前的文章或继续浏览下面的相关文章,希望大家以后多多支持脚本之家!

(编辑:源码网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读