我正在尝试使用饼图获得圆角:
ul li{
-webkit-border-radius: 8px 8px 0 0;
-moz-border-radius: 8px 8px 0 0;
border-radius: 8px 8px 0 0;
color: #FFFFFF !important;
float: left;
font-size: 16px;
font-weight: bold;
height: 24px;
margin-top: 14px;
padding: 15px 15px 5px;
text-align: center;
text-decoration: none;
background: url("../nImg/comunHomeSprite.png") no-repeat scroll -5px -4172px transparent;
behavior: url(../nJs/pie/PIE.htc);
}
CSS文件位于: /nCss/mycss.css
html文件在:/home/html/index.html
Pie .htc+.js 在:/nJs/pie/PIE.htc(和 PIE.js,但我不确定 .js 的用途)
路径应该相对于 .css 文件还是 .html 文件?
问题是我没有看到这个角落是圆的:(
-编辑-
甚至尝试在http://toniweb.us/recursos/PIE.htc中托管 .htc 文件,但仍然无法正常工作
我究竟做错了什么?
-编辑-
试过:
{
position:relative;
zoom:1;
behavior: url(http://toniweb.us/recursos/PIE.htc);
}
不工作
{
position:relative;
zoom:1;
behavior: url(/nJs/pie/PIE.htc);
}
或者
{
position:relative;
zoom:1;
behavior: url(../../nJs/pie/PIE.htc);
}
也不工作:S
注意:我也下载了这个例子:http ://css3pie.com/demos/tabs/
并更新了 PIE.htc 文件 /PIE.htc @ /pie/PIE.htc 的路径(并移动了 .js 和 .htc 文件)并且不再工作了。只有在与 .html 相同的路径中时才会起作用,不幸的是,这不适合我..