圆角问题 [英] round corners question

查看:93
本文介绍了圆角问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道如何使用javascript的圆的角落,但圆只能说,1或2角,你可以选择不是所有的。谢谢

does anyone know how to round corners of div using javascript, but round only lets say 1 or 2 corners which you can choose not all of them. Thank you

推荐答案

您需要完全支持跨浏览器吗?为什么不将它作为更好的浏览器和使用CSS的增强:

Do you need full cross-browser support? Why not keep it as an "enhancement" for better browsers and use CSS:

.corners {
  border-radius: 8px;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
}

这篇关于圆角问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆