可见性:隐藏在Firefox中不起作用,但在Chrome中起作用

时间:2016-11-14 11:39:02

标签: html css google-chrome firefox

此HTML / CSS代码在Chrome中运行良好,但在Firefox中无效。我试着用

border:none; / border-style:none;

但它似乎没有解决问题。

请参阅此JSFiddle:link

Chrome中的结果: chrome

Firefox中的结果: firefox

提前感谢您的建议。

2 个答案:

答案 0 :(得分:1)

这样的东西可能有用吗?应该在FF工作,但它有点具体,所以必须适应另一种布局。

override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
    if let touch = touches.first {
        let currentPoint = touch.location(in: self)
        // do something with your currentPoint
    }
}

override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
    if let touch = touches.first {
        let currentPoint = touch.location(in: self)
        // do something with your currentPoint
    }
}

override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
    if let touch = touches.first {
        let currentPoint = touch.location(in: self)
        // do something with your currentPoint
    }
}

https://jsfiddle.net/79bbxcaw/

答案 1 :(得分:1)

以下是解决您遇到的问题的解决方案:

<th style="border-top-color: transparent;border-bottom-color:
transparent;">&nbsp;</th>

检查此JSFiddler:Link

希望它对你有用。

相关问题