pieCSS3:不在本地舍入 [英] pieCSS3: Not rounding in local
问题描述
我想用饼图得到圆角:
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 in: /nJs/pie/PIE.htc ,但我不知道.js是什么)
应该是相对于.css文件还是.html文件的路径?
问题是,我没有把这个角落弄圆:(
-EDIT-
即使尝试在 http: //toniweb.us/recursos/PIE.htc ,但仍然无法运作
我做错了什么?
-EDIT -
尝试:
{
position:relative;
zoom:1;
behavior:url(http://toniweb.us/recursos/PIE.htc);
}
不工作
{
position:relative;
zoom:1;
behavior:url(/nJs/pie/PIE.htc);
}
或
{
:relative;
zoom:1;
behavior:url(../../ nJs / pie / PIE.htc);
}
注意:我也下载了这个例子: http://css3pie.com/demos/tabs/
并且更新了PIE.htc文件/PIE.htc @ /pie/PIE.htc的路径(并移动了.js和.htc文件),并且不再工作。像只在同一路径中时唤醒。
解决方案从CSS3PIE页面开始:
注意:此路径是相对于正在查看的HTML文件,而不是从中调用的CSS文件。
这是开始步骤4。 http://css3pie.com/documentation/getting-started/
i'm trying to get rounded corners using pie:
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 file is in: /nCss/mycss.css
Html file is in: /home/html/index.html
Pie .htc+.js in: /nJs/pie/PIE.htc (and PIE.js, but i'm not sure what is the .js for)
should path be relative to .css file or to .html file?
The problem is that i'm not seing this corners to be rounded :(
-EDIT-
Even tried to host the .htc file in http://toniweb.us/recursos/PIE.htc and stills not working
what am i doing wrong?
-EDIT-
Tried with:
{ position:relative; zoom:1; behavior: url(http://toniweb.us/recursos/PIE.htc); }
Not working
{ position:relative; zoom:1; behavior: url(/nJs/pie/PIE.htc); }
or
{ position:relative; zoom:1; behavior: url(../../nJs/pie/PIE.htc); }
Not working either :S
Note: I also downloaded this example: http://css3pie.com/demos/tabs/
And updated the path (and moved .js and .htc files) of the PIE.htc file /PIE.htc @ /pie/PIE.htc and is not working anymore.. Like is only woking when is in same path as .html, unfortunatelly that wont fit for me..
解决方案Right from the CSS3PIE page:
Note: this path is relative to the HTML file being viewed, not the CSS file it is called from.
That's under step 4 in getting started. http://css3pie.com/documentation/getting-started/
这篇关于pieCSS3:不在本地舍入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!