css - 另一个 Css3Pie 不能使用 border-radius

标签 css rounded-corners css3pie

我阅读了大量类似的问题并测试了所有解决方案,但没有一个有效...

这是我的CSS:

.button
{   
    background-image:url(../Immagini/pulsante.jpg) !important;
    background-color:#004878;
    padding:0.4em 1em;
    text-decoration:none !important;
    border-radius:5px 5px 5px 5px;
    border:1px solid #C5DBEC;
    font-weight:bold;
    cursor:pointer;
    margin-right:0.1em;
    overflow:visible;
    position:relative;
    text-align:center;
    display:inline-block;
    behavior: url(../Scripts/css3Pie/PIE.php);
}

我在文件中添加了一个简单的警告(即使是在 htc 的文件中),它会显示以便文件已加载。

如你所见,我使用 php 版本来避免服务器问题,但没有任何变化

我什至尝试删除 css 中的 !important 但仍然没有用

我想念什么?

编辑

这是我的文件夹结构:

ROOT
-->Defalut.aspx
-->Pages
     -->Page.aspx
-->Scripts
   -->cs3Pie
      -->PIE.php
      -->all other css3Pie...
-->Css
   -->Style.css

最佳答案

来自 css3pie.com关于行为:

注意:此路径是相对于正在查看的 HTML 文件,而不是调用它的 CSS 文件。

只是你的绝对路径

-ms-behavior: url("http://css3pie.com/pie/PIE.htc");

或相对于html的路径:

/* You need to use this code if your html file in <site>/index.php
   And PIE-file in <site>/Scripts/css3Pie/PIE.php
   
   Also check if your get access to PIE-file from your browser
   via link like http://<site>/Scripts/css3Pie/PIE.php
*/
-ms-behavior: url("/Scripts/css3Pie/PIE.php);

> Working example on CodePen (tested in ie8)

关于css - 另一个 Css3Pie 不能使用 border-radius,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26158929/

相关文章:

css - 来自 github 版本的外部样式表不加载

Android - 圆角矩形内的圆角矩形

CSS圆 Angular 表格行的上 Angular

css - IE 8 圆 Angular 问题

css - :hover with linear gradients in IE9

javascript - Angular Material 2 - 如何将垫子工具栏和垫子标签锁定到顶部

html - Header-bg div 100% 并不是真正的 100%

html - CSS - 评级 css 系统

iphone - UINavigationBar 两个圆角

javascript - Modernizr、html5shiv、ie7.js 和 CSS3 Pie。什么时候使用哪个?