html - 内容溢出 Chrome 中的 div 半径

标签 html css google-chrome webkit cross-browser

我的网站布局很奇怪(由我的客户设计),但我开发得很好。

问题是 Chrome(版本 22)不工作,但在 Firefox(版本 16)和 IE 9 中工作。

问题出在 colRight 中,有两个 div 不符合半径,内容溢出并越过 colCenter

我该如何解决?

JSFIDDLE

火狐:

enter image description here

Chrome enter image description here

HTML:

     <div class="colCenter" id="two"></div>
     <div class="colRight" id="three">
         <div class="first_menu"></div>
         <div class="dati_societari"></div>
    </div>​

CSS:

    .colCenter{
    position:absolute;
    top:0;
    left:18%;
    height: 100%;
    width: 72%;
    background: #ccc;
    border-left: 0px solid #333;
    border-radius: 280px 0px 0px 280px / 1000px 0px 0px 1000px;
    /*border-radius: 0.2px 0px 0px 0.2px;*/
    z-index:100;
    overflow:hidden !important;
    box-shadow:-5px -1px 8px rgba(0,0,0,0.4);
    -webkit-box-shadow:-5px -1px 8px rgba(0,0,0,0.4);
    -moz-box-shadow: -5px -1px 8px rgba(0,0,0,0.4);
}

.colRight{
    position:absolute;
    top:0;
    right:0;
    background:#fff;
    height:100%;
    width:18%;  
    z-index:1000;
    border-left: 0px solid #333;
    /*border-radius: 70px 0px 0px 70px / 250px 0px 0px 250px;*/
    border-radius: 280px 0px 0px 280px / 1000px 0px 0px 1000px;
    box-shadow:-5px -1px 8px rgba(0,0,0,0.4);
    -webkit-box-shadow:-5px -1px 8px rgba(0,0,0,0.4);
    -moz-box-shadow: -5px -1px 8px rgba(0,0,0,0.4);
    overflow:hidden !important;
}






.first_menu{
    height:10%;
    width:100%;
    background:#714d8f; 
    position:absolute;
    top:0;
    left:0;
    z-index:2;
}


.dati_societari{
    height:8%;
    width:100%;
    background:#9a9a9a; 
    position:absolute;
    bottom:50px;
    left:0;
    z-index:2;
    text-align:center;
}


.social{
    position:absolute;
    width:100%;
    bottom:5%;
    left:20%;   
}

.img_social{
    opacity:0.7;    

    transition-property: opacity; /*standard*/
    transition-duration: 0.4s;

    -webkit-transition-property: opacity; /*Safari e Chrome */
    -webkit-transition-duration: 0.4s;

    -o-transition-property: opacity;      /*Opera*/
    -o-transition-duration: 0.4s;

    -moz-transition-property: opacity;    /*Firefox*/
    -moz-transition-duration: 0.4s; 
}

最佳答案

关于html - 内容溢出 Chrome 中的 div 半径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13051545/

相关文章:

javascript - 如何在 google chrome DevTools 中禁用某些文件的缓存

javascript - 正则表达式 - 用于捕获所有 href

html - 将 SVG 与背景图像对齐

javascript - 当我使用 bootstrap 4 时,为什么粘性 header 在表单标签中不起作用?

asp.net - <asp :GridView> width, <div> 宽度

javascript - 通过更改表单中的属性绕过 chrome XSS Auditor

CSS3 动画曾在 webkit 浏览器中运行,但不再运行

JavaScript 事件滚动不会触发

html - XPath : Extract the text located after a specific string of characters

css - 首字母伪元素覆盖更高的特异性规则