<style>
.panel { margin:0px }
.panel:after {
content: attr(data-text);
height:100px;
overflow:scroll; /* <- looks like this is the evil css */
line-height:2em;
display:block;
}
</style>
<div class="panel">i see your lips moving but all i understand is bla bla bla </div>
<div class="panel" data-text="Lorem ipsum dolor sit amet, consectetur
adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum."> yes
</div>
如果您单击浏览器因鼠标处理程序错误而崩溃的滚动条,有人可以确认这一点吗?
确切地说是编辑..
那是 Safari 5.0.6 的 crashreporter 日志中的错误消息
WebCore::RenderLayer::scrollTo(int, int) + 714 WebCore::RenderLayer::setScrollOffset(WebCore::IntPoint const&) + 33 WebCore::ScrollableArea::setScrollOffsetFromAnimation(WebCore::IntPoint const&) + 30 WebCore::ScrollAnimator ::notityPositionChanged() + 43 WebCore::ScrollAnimator::scroll(WebCore::ScrollbarOrientation, WebCore::ScrollGranularity, 浮动, 浮动) + 140 WebCore::ScrollAnimatorMac::scroll(WebCore::ScrollbarOrientation, WebCore::ScrollGranularity, 浮动, 浮动) + 300 WebCore::ScrollableArea::scroll(WebCore::ScrollDirection, WebCore::ScrollGranularity, 浮动) + 159 WebCore::Scrollbar::autoscrollPressedPart(double) + 123 WebCore::Scrollbar::mouseDown(WebCore:: PlatformMouseEvent const&) + 129 WebCore::EventHandler::passMousePressEventToScrollbar(WebCore::MouseEventWithHitTestResults&, WebCore::Scrollbar*) + 58 WebCore::EventHandler::handleMousePressEvent(WebCore::PlatformMouseEvent const&) + 1424 WebCore::EventHandler::mouseDown(NSEvent*) + 385 -[WebHTMLView mouseDown:] + 475 WebCore::EventHandler::passMouseDownEventToWidget(WebCore::Widget*) + 388 WebCore::EventHandler::passWidgetMouseDownEventToWidget(WebCore::RenderWidget*) + 27 WebCore::EventHandler::passSubframeEventToSubframe(WebCore::MouseEventWithHitTestResults&, WebCore::Frame*, WebCore::HitTestResult*) + 720 WebCore::EventHandler::passMousePressEventToSubframe (WebCore::MouseEventWithHitTestResults&, WebCore::Frame*) + 56 WebCore::EventHandler::handleMousePressEvent(WebCore::PlatformMouseEvent const&) + 462 WebCore::EventHandler::mouseDown(NSEvent*) + 385 -[WebHTMLView mouseDown:] + 475 -[NSWindow 发送事件:] + 5381 0x1000 + 259380 0x1000 + 259265 -[NSApplication 发送事件:] + 2939 0x1000 + 223168 -[NSApplication 运行] + 867 NSApplicationMain + 574 0x1000 + 40174