本文介绍了是否可以用CSS弯曲div?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 是否可以使用CSS弯曲div? 某种webkit转换... 我想创造的效果是一个环形甜甜圈形状,但由一个弯曲的div组成,而不是边框​​半径/边框技巧 请帮助 问候 yarian 我尝试过: 我想创造的效果是一个环形甜甜圈形状,但由弯曲的div组成,而不是边框​​半径/边框技巧 注意1:我的意思是偷工减料不处理 直线假设你要改变凸形 Iam尝试查找本网站(http://www.roblaplaca.com/examples/bezierBuilder/)但不工作 < style type =text / css> .C { -webkit-transition:all 1s cubic-bezier( -.01,.85,.57,1.01); -mo z-transition:全1s cubic-bezier( - .01,.85,.57,1.01); 过渡:全1s cubic-bezier( - .01,.85,.57,1.01 ); } < / style> < img src =Images / Test.pngclass =C/ >     解决方案 #rcorners2 { border-radius:25px; border:2px solid#73AD21; padding:20px; 宽度:200px; 身高:150px; } < / head> < body> 带边框元素的圆角: 圆角! 是CSS3所以我不确定ie浏览器 目前,单独使用CSS是不可能的。最好的办法是使用画布(和一些Javascript)。 https://developer.mozilla.org/en/Drawing_Graphics_with_Canvas http://www.roblaplaca.com / examples / bezierBuilder / 你必须使用多边形函数 。container { width:445px; 身高:670px; 溢出:隐藏; 保证金:30px auto; shape-outside:polygon( 170 .67px 291 .00px, 126 .23px 347 .56px, 139 .79px 417 .11px, 208 .92px 466 .22px, 302 .50px 482 .97px, 343 .67px 474 .47px, 446 .33px 452 .00px, 443 .63px 246 .82px, 389 .92px 245 .63px, 336 .50px 235 .26px, 299 .67px 196 .53px, 259 .33px 209 .53px, 217 .00px 254 .76px); } Is it possible to bend a div with CSS?Some sort of webkit transform...The effect i want to create is a have a ring doughnut shape but made up of a curved div as opposed to border-radius/border tricksPlease HelpRegardsyarianWhat I have tried:The effect i want to create is a have a ring doughnut shape but made up of a curved div as opposed to border-radius/border tricksNote 1 : I mean cutting corners is not handlingA straight line Suppose you want to change the convex shapeIam Trying Find This Site (http://www.roblaplaca.com/examples/bezierBuilder/) But Not Working <style type="text/css"> .C{ -webkit-transition: all 1s cubic-bezier(-.01, .85, .57, 1.01); -moz-transition: all 1s cubic-bezier(-.01, .85, .57, 1.01); transition: all 1s cubic-bezier(-.01, .85, .57, 1.01); } </style> <img src="Images/Test.png" class="C" />     解决方案 #rcorners2 { border-radius: 25px; border: 2px solid #73AD21; padding: 20px; width: 200px; height: 150px;}</head><body>Rounded corners for an element with a border:Rounded corners!is CSS3 so i not sure about ie browserCurrently, this is not possible with CSS alone. Your best bet would be to make use of the canvas (and some Javascript).https://developer.mozilla.org/en/Drawing_Graphics_with_Canvashttp://www.roblaplaca.com/examples/bezierBuilder/You have to use the polygon function.container{ width:445px; height:670px; overflow:hidden; margin:30px auto; shape-outside: polygon(170.67px 291.00px,126.23px 347.56px,139.79px 417.11px,208.92px 466.22px,302.50px 482.97px,343.67px 474.47px,446.33px 452.00px,443.63px 246.82px,389.92px 245.63px,336.50px 235.26px,299.67px 196.53px,259.33px 209.53px,217.00px 254.76px);} 这篇关于是否可以用CSS弯曲div?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-16 08:18