[英]How to use nify javascript to make round corner box? Im using but not working
How to make round corners with Nifty technique. 如何使用Nifty技术制作圆角。 I included niftycube.js and then called the function Nifty("div.firstblock");.
我包含了niftycube.js,然后将其称为函数Nifty(“ div.firstblock”);。 But its not working.
但是它不起作用。 Whether i have to include any other JavaScript or CSS??.
我是否必须包括任何其他JavaScript或CSS? Help
救命
Please stop, it's not worth your time. 请停下来,这不值得您花费时间。 Firefox, Safari, Chrome and Konqueror all support their own form of the CSS3 style,
border-radius
, so put this in your CSS and be done with it: Firefox,Safari,Chrome和Konqueror都支持自己的CSS3样式
border-radius
,因此请将其放入CSS并完成以下操作:
.myDiv {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
border-radius: 5px;
}
Giving your divs rounded corners is just a visual nicety and one that can be saved for people with modern browsers. 将div圆角化只是一种视觉上的好处,并且可以为使用现代浏览器的人保存。 If IE users don't get a rounded border, so what?
如果IE用户没有圆角边框, 那该怎么办?
您还需要包括niftyCorners.css。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.