简体   繁体   English

如何使用nify javascript制作圆角框? 我正在使用但无法正常工作

[英]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.

相关问题 如何使用没有图像的jquery获取圆角文本框 - How to get round corner textbox using jquery without images 如何通过使用 jQuery 拖动其右下角来调整文本输入框的大小(如 textarea)? - How to make text input box resizable (like textarea) by dragging its right-bottom corner using jQuery? 哪个是最好的轻量级jquery插件,可以使跨浏览器不使用图像就变得圆滑? - Which is the best lightweight jquery plugin to make cross browser round corner without using image? 如何使用jQuery / Javascript将0.0099999999999909舍入到0.01? - How to round 0.0099999999999909 to 0.01 using jQuery/Javascript? 如何修剪到小数点后3位,然后使用javascript将其舍入 - How to trim into 3 decimal places then round it using javascript 如何在不使用 toFixed() 的情况下在 JavaScript 中舍入数字 - How to round a number in JavaScript without using toFixed() 如何使用jQuery .slideUp()使浮动按钮出现在角落? - How to use jQuery .slideUp() to make a floating button appear in the corner? 如何使用JavaScript将文本框设为只读 - How do you make a text box readonly using JavaScript 如何使用JavaScript / JQuery在页面上显示html框? - How to make a html box appear on page using JavaScript/JQuery? 试图用JavaScript,JQuery制作确认框……不起作用 - Trying to make confirmation box with JavaScript, JQuery…not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM