Google的圆角生成器

有一次想在页面中做圆角矩形效果,无意中搜索到了这样一篇文章:Googles Rounded Corner Generator

代码<img src=”http://groups-beta.google.com/groups/roundedcorners?c=E8EEF7&bc=white&w=50&h=50&a=tr” alt=”google round corner” />的效果就是这样一个图片:

google round corner

参数说明:

  • c(color): 前景色
  • bc(background-color): 背景色(默认为透明)
  • h(height): 高度(默认8 px)
  • w(width): 宽度(默认8 px)
  • a(angle?): 要产生哪个角。有四个值:tl(top left), tr(top right), bl(bottom left), br(bottom right)

太方便了,太方便了

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.