CSS3 border radius shorthand solution

坚强是说给别人听的谎言 提交于 2019-12-23 21:11:52

问题


Is this

border-radius:10px 10px 0 0;

A shortend version that will work with all browsers that recognise it to this:

border-top-left-radius:10px; border-top-right-radius:10px;

回答1:


Yes, it's better the first approach because it's shorter and waste less bandwith.




回答2:


Yes they are identical just like there is padding-left there is border-top-left-radius.




回答3:


If you really want the confidence of knowing that it will work on all the browsers that can support it, you should be using Compass.



来源:https://stackoverflow.com/questions/12249648/css3-border-radius-shorthand-solution

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!