javascript - firefox 中的兼容性问题,动态,绝对表内容

标签 javascript jquery css firefox

如何使这个 ( http://jsbin.com/uxayid/3/) 在 firefox 中也能工作?

这是三 Angular 形的 css:

#c table tr td {
    height: 295px;
    width: 208px;
    background-color: white;
    border: 1px solid black;
    position: relative;
    text-align: center;
}
.tr-topright {
    border-left-width: 42px;
    border-top-width: 42px;
    border-left-color: white;
    border-left-style: solid;
    border-top-color: #BBBBBB;
    border-top-style: solid;
    box-shadow: -3px 3px 6px 0 lightGrey;
    height: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
}

第一个是预期结果。

chrome and firefox preview

最佳答案

只需添加:

display: block;
float: left;

#c table tr td

规则

它应该可以正常工作。

关于javascript - firefox 中的兼容性问题,动态,绝对表内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12278853/

相关文章:

javascript - 适用于 HTML <p> 元素文本的 jQuery .change() 方法

css - jqGrid 编辑表单对话框模态背景移动页面的其余部分

javascript - 将对象字符串转换为JS对象

ajax - jquery ajax 将字符串作为 POST 发送

javascript - 我可以保留对文档片段的引用吗?

javascript - 如何防止 div 离开屏幕?

css - 环绕 div 的文本

javascript - 在客户端设置其值后获取隐藏字段值c#页面加载母版页返回空

javascript - 存在值时更新变量

javascript - .data ('kendoComboBox' ) 从事件处理程序调用时返回未定义