CSS3 Border Radius属性在本地主机中不起作用? [英] CSS3 Border Radius property doesn't work in localhost?

查看:261
本文介绍了CSS3 Border Radius属性在本地主机中不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常奇怪的问题与css3边界半径属性。我的下面的CSS和html工作正常与IE9如果我双击文件,并打开与IE9,但如果边界属性不工作在IE如果我打开文件通过LOCALHOST(xampp insatlled在Windows 7)。同样的文件在localhost与其他浏览器上正常工作。我如何解决它?

I'm having a very strange problem with css3 border radius property. My following CSS and html works fine with IE9 if i double click the file and open with the IE9 , however if the border property does not work in IE if i open the file through LOCALHOST (xampp insatlled on windows 7). The same file works fine on localhost with other browsers. How can i fix it?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style media="all" type="text/css">@import "circle.css";</style>
</head>
<body>
<div class="exampleborderradiusf">F</div>
</body>
</html>

且CSS是:

.exampleborderradiusf {
    float:left;
    background-color: #464646;
    margin-top: 20px;
    margin-right: 40px;
    width: 70px;
    height: 70px;
    text-align: center;    
    -moz-border-radius: 35px;
    border-radius: 35px;
    color: white;
    font-size: 20px;
    position: relative;
    top: 20px;
}

感谢您的帮助。

推荐答案

IE9当然还处于测试阶段,因此会有错误和不完整的功能。

IE9 is, of course, still in beta, so will have bugs and incomplete features. Its possible you may have stumbled on one of them.

我不能想到太多的原因,为什么一个CSS样式会停止工作,而其他人在同一个CSS文件继续

I can't think of too many reasons why a CSS style would stop working while others in the same CSS file continue to work.

您是否检查过IE仍然处于IE9模式,而不是IE8-compat模式或类似的模式。我可以看到,这种事情可能会改变取决于区域 - 我看到类似的事情发生在IE8,其中有一个晦涩的配置设置,可以使其切换到IE7兼容模式时浏览本地Intranet。

Have you checked that IE is still in IE9 mode, and not in IE8-compat mode or something like that. I can see that this sort of thing may change depending on the zone - I've seen similar things happen in IE8 where there's an obscure config setting that can make it switch over to IE7-compat mode when browsing within a local intranet.

这篇关于CSS3 Border Radius属性在本地主机中不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆