jquery - 跨浏览器 css 样式建议

标签 jquery css cross-browser internet-explorer-11

我在 IE 11 和在 Chrome 中运行良好的 mozila 中遇到了几个 CSS 问题。

  1. Border-Radius 问题 - 在 chrome 中有效但在 IE 11 中无效

    table, td, th {
       border-radius: 25px;
       border-collapse: collapse;
       background-color: #C0C0C0;
       border: 2px solid rgb(255, 255, 255);
    }
    
  2. 应用的样式表在 Chrome 和 IE 11 中运行良好,但在 Firefox 中运行不佳。

  3. 在 Chrome 中正确对齐的表格在 IE 11 中有点错位。

解决所有这些问题的最佳方法是什么。我读了很多关于这些的文章。我取消选中兼容性 View 设置(内联网)选项,这是一篇文章中的一个建议。但似乎没有什么进展顺利。

有线索吗?

最佳答案

你能试试下面的代码吗?

  table, td, th {
    border-radius: 25px;
    -moz-border-radius: 25px; /*ff*/
    -ms-border-radius: 25px; /*ie11*/
    border-collapse: collapse;
    background-color: #C0C0C0;
    border: 2px solid rgb(255, 255, 255);
  }

关于jquery - 跨浏览器 css 样式建议,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34542255/

相关文章:

JavaScript 函数 :signup() not sumbitting to ajax

javascript - 如何使用 Jest 单元测试触发 transitionend

html - Safari 上的 CSS 翻译问题

CSS 背景图片仅适用于 firefox

javascript - 将一个字符放入具有指定类别的空 div-s 中

javascript - 打开和关闭的图像交换未在正确的时间更改

javascript - angularjs selectBoxIt 自定义主题

html - CSS3 Columns ,强制元素中断

css - IE 11 css-vars-ponyfill 只支持 :root variable, 不支持行内变量

javascript - 在 IE6 和 IE7 中使用 AJAX 调用的问题——我再次问同样的问题,因为我之前没有得到任何解决方案