[英]Word smartart realization with HTML/CSS/JavaScript (geometric shapes)
I'm sure there are a lot of you knowing the following element created as "smart art" with Microsoft Word: 我相信你们中有很多人都知道使用Microsoft Word创建的“智能艺术”元素:
Is there any framework for web realization of this graphic (pure HTML, CSS, JavaScript)? 是否存在用于此图形的Web实现的框架(纯HTML,CSS,JavaScript)? Or can you imagine how this could be realized as a "clean" web element?
或者你能想象如何将其作为一个“干净”的网络元素来实现吗?
Here's an idea on how to do it with pure html. 这是关于如何使用纯HTML进行操作的想法。 You can wrap this concept into a snazzy javascript function to speed things up.
你可以将这个概念包装成一个时髦的javascript函数来加快速度。 The idea is simple border-radius circles:
这个想法是简单的边界半径圆:
NOTE: only tested on chrome 注意:仅在镀铬上测试过
http://jsfiddle.net/9m6fbtxL/ http://jsfiddle.net/9m6fbtxL/
.circle1 {
position: absolute;
width: 340px;
height: 340px;
border-radius: 170px;
border: 1px solid #4e82bc;
background-color: #4e82bc;
}
.circle2 {
position: absolute;
top: 110px;
left: 60px;
width: 220px;
height: 220px;
border-radius: 110px;
border: 2px solid #FFFFFF;
background-color: #4e82bc;
}
.circle3 {
position: absolute;
top: 212px;
left: 120px;
width: 100px;
height: 100px;
border-radius: 50px;
border: 2px solid #FFFFFF;
background-color: #4e82bc;
}
.textArea1 {
position: absolute;
width: 500px;
height: 100px;
top: 8px;
left: 170px;
background-color: #FFFFFF;
border: 2px solid #4e82bc;
}
.textArea2 {
position: absolute;
width: 500px;
height: 100px;
top: 110px;
left: 170px;
background-color: #FFFFFF;
border: 2px solid #4e82bc;
}
.textArea3 {
position: absolute;
width: 500px;
height: 100px;
top: 212px;
left: 170px;
background-color: #FFFFFF;
border: 2px solid #4e82bc;
}
.textArea4 {
position: absolute;
width: 500px;
height: 16px;
top: 314px;
left: 170px;
background-color: #FFFFFF;
border: 2px solid #4e82bc;
}
.textArea5 {
position: absolute;
width: 500px;
height: 14px;
top: 332px;
left: 170px;
background-color: #FFFFFF;
border: 2px solid #4e82bc;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.