【发布时间】:2019-01-11 09:05:03
【问题描述】:
.css 文件
#log{
-webkit-box-flex: 1;
padding-top: 20px;
overflow: scroll ;
height: 150px;
color: #23568a;
font-size: large;
font-weight: bold;
display: flex;
flex-direction: column-reverse;
}
在 html 文件中, 我正在使用这样的日志
<div id="receiveBox">
<h2>Receive </h2>
<div id="log"></div>
</div>
socket.on('my_response', function(msg) {
$('#log').append('<br>' + $('<div/>').text('Received #' + msg.count + ': ' + msg.data).html());
});
使用
溢出:滚动;
我尝试将滚动添加到它将拆分的结果,但滚动条仅出现在 Safari 和 Chrome 中,而不出现在 Firebox 中。
我如何让它在 Firefox 中工作??
【问题讨论】:
-
寻求代码帮助的问题必须包括在问题本身最好是在堆栈片段中重现它所需的最短代码。尽管您已经提供了一个链接,但如果它变得无效,那么您的问题对于未来遇到同样问题的其他 SO 用户将毫无价值。见Something in my website doesn't work can I just paste a link。
-
该链接只是一个可能的解决方案,应该或不应该实施。我已经发布了上面的问题
-
所有代码应该在问题中以演示问题。
-
我应该包含我的整个 .css 文件吗?
-
不,足以证明问题。需要最小演示。
标签: css firefox webkit overflow