pieCSS3: Not rounding in local

心已入冬 提交于 2019-12-10 10:10:00

问题


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..


回答1:


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/




回答2:


Your PIE.htc file is being served with an incorrect content-type header of text/plain. You must correct this to make IE interpret the behavior file correctly; see http://css3pie.com/documentation/known-issues/#content-type for details.



来源:https://stackoverflow.com/questions/7877917/piecss3-not-rounding-in-local

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