作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用饼图获得圆 Angular :
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 文件?
问题是我没有看到这个 Angular 是圆的:(
-编辑-
甚至试图在 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,不幸的是,它不适合我..
最佳答案
直接来自 CSS3PIE 页面:
Note: this path is relative to the HTML file being viewed, not the CSS file it is called from.
这是入门的第 4 步。 http://css3pie.com/documentation/getting-started/
关于css - pieCSS3 : Not rounding in local,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7877917/
我是一名优秀的程序员,十分优秀!