开发者

purevolume round corners

开发者 https://www.devze.com 2022-12-22 19:05 出处:网络
does anyone know how purevolume.com gets their rou开发者_如何学编程nded corners? its very interesting and cross browser except I couldnt find the source code for it anywhere.It\'s part of their backgr

does anyone know how purevolume.com gets their rou开发者_如何学编程nded corners? its very interesting and cross browser except I couldnt find the source code for it anywhere.


It's part of their background image:

https://www.purevolume.com/_images_new/header_nav_bg.png

purevolume round corners

This is, of course, one of many ways to accomplish this. In Chrome and Firefox you can use CSS:

-webkit-border-radius:5px;
-moz-border-radius:5px;

Of course this won't work for Internet Explorer. For IE you would have to use a different technique - there are many. Doing the rounded corners in your background image is safe, but locks you into a box to where you have to edit images in order to change the visual shape of an element (not that bad, but not always encouraged).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号