博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
css css2 css3_CSS圈子
阅读量:2515 次
发布时间:2019-05-11

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

css css2 css3

CSS Circle

A while back I shared a . Over the past year, I've found CSS triangles incredibly effective, especially when looking to create tooltips or design elements with a likewise pointer pattern. There's another common shape that's easy to create, and that is the circle. Using border-radius, you can create wonderful CSS circles.

不久前,我分享了一种的 。 在过去的一年中,我发现CSS三角形非常有效,尤其是在寻找使用同样的指针模式创建工具提示或设计元素时。 还有另一个易于创建的常见形状,那就是圆形。 使用border-radius,您可以创建精美CSS圆。

CSS (The CSS)

Setting the border-radius of each side of an element to 50% will create the circle display at any size:

将元素各边的边界半径设置为50%,将创建任意大小的圆形显示:

.circle {	border-radius: 50%;	width: 200px;	height: 200px; 	/* width and height can be anything, as long as they're equal */}

It's really that simple...but I can't let this post go without touching on and :

真的就这么简单...但是我不能不谈和而放弃这篇文章:

/* Create the animation blocks */@keyframes spin {	from { transform: rotate(0deg); }	to { transform: rotate(360deg); }}/* Spinning, gradient circle; CSS only! */#advanced {	width: 200px;	height: 200px;		background-image: -moz-radial-gradient(45px 45px 45deg, circle cover, yellow 0%, orange 100%, red 95%);	background-image: -webkit-radial-gradient(45px 45px, circle cover, yellow, orange);	background-image: radial-gradient(45px 45px 45deg, circle cover, yellow 0%, orange 100%, red 95%);		animation-name: spin; 	animation-duration: 3s; /* 3 seconds */	animation-iteration-count: infinite; 	animation-timing-function: linear;}

Voila. There's an awesome CSS circle!

瞧 有一个很棒CSS圈子!

CSS circles don't immediately appear as useful as CSS triangles, but they surely have value within design. An animated set of circles could act as a loading animation; creative use of the circle is up to you. Can you think of a good CSS circle usage? Share!

CSS圆并没有像CSS三角形那样立即有用,但是它们肯定在设计中具有价值。 一组动画的圆可以充当加载动画; 圈子的创意使用取决于您。 您能想到CSS圈的良好用法吗? 分享!

翻译自:

css css2 css3

转载地址:http://tuvwd.baihongyu.com/

你可能感兴趣的文章
Commands in Powershell
查看>>
bzoj2748 [HAOI2012]音量调节 背包
查看>>
【bzoj2301】[HAOI2011]Problem b 莫比乌斯反演
查看>>
STL
查看>>
浅谈SQL Server中的事务日志(三)----在简单恢复模式下日志的角色
查看>>
ArrayList 源码分析
查看>>
文本超出内容区域后用三个省略号代替
查看>>
不高兴的津津
查看>>
(转) exp1-3://一次有趣的XSS漏洞挖掘分析(3)最终篇
查看>>
sampleSize - 从数组中随机获取 n 个元素
查看>>
ImageLoader介绍2
查看>>
1062 Talent and Virtue (25)
查看>>
java代码读取yarn聚合目录日志
查看>>
spring mvc @ResponseStatus 注解 注释返回中文乱码的问题
查看>>
第3章 单一职责原则
查看>>
VID = 058F PID = 6387 可用的量产工具
查看>>
Datatable转换为泛型列表对象
查看>>
poj 1185解题总结
查看>>
python爬虫调用搜索引擎及图片爬取实战
查看>>
HW6.4
查看>>