0
Q
水平滚动条丢失
A
回答
2
根据jsbin的代码,试试这个:
.abc{
overflow-x: auto;
white-space: nowrap;
}
可以保留的这些要求“自动”或“滚动”一。
还有很多其他的房产价值,请点击这里:http://www.w3schools.com/cssref/pr_pos_overflow.asp
0
在你的例子中,你应该设置白色空间值nowrap在你的内部股利。
看看在html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div class="a">
<div class="scrollviewer">
<p class="datacontainer">This is overflow-x scroll. This is overflow-x scroll.
<br/>
This is overflow-x scroll.This is overflow-x scroll.This is overflow-x scroll.This is overflow-x scroll.This is overflow-x scroll.This is overflow-x scroll.This is overflow-x scroll.This is overflow-x scroll.</p>
</div>
</div>
</body>
</html>
和CSS:
.scrollviewer{
overflow-x: scroll;
width:100%;
}
.datacontainer{
white-space: nowrap;
}
相关问题
- 1. 水平滚动+滚动条
- 2. 窗体窗体ListView丢失水平滚动条
- 3. 右对齐的双列布局会丢失水平滚动条
- 4. WebView水平滚动失败
- 5. 水平滚动条与fullpage.js
- 6. webgrid与水平滚动条?
- 7. 水平滚动条问题
- 8. 水平滚动条宽度
- 9. Javascript水平滚动条
- 10. 删除水平滚动条
- 11. Macvim:水平滚动条
- 12. 滚动条水平DIV
- 13. Mootools的水平滚动条
- 14. div的水平滚动条
- 15. 水平滚动条问题
- 16. jqGrid水平滚动条
- 17. 垂直滚动的水平滚动条
- 18. AJAX使用滚动条水平滚动
- 19. 网格水平滚动条(浮动)
- 20. 水平滚动条和宽度自动
- 21. 重复水平自动滚动条
- 22. 水平滚动
- 23. 水平滚动
- 24. 水平滚动
- 25. 水平滚动?
- 26. 显示父水平滚动条和子垂直滚动条
- 27. HTML并启用div的水平滚动,但隐藏水平滚动条
- 28. 块元素消失水平滚动
- 29. CSS - 仅使用水平滚动条
- 30. WPF水平滚动条不可见
请将代码添加到这个问题。您也可以在问题中保留jsbin。将代码添加到代码块中的原因是万一jsbin链接将来会中断,问题仍然可以帮助未来的用户。 – Lexi
这是一个志愿者网站。不要打电话给别人姓名,也不要期待帮助。他们基于问题的质量进行投票。看[这里](http://stackoverflow.com/help/how-to-ask) – Lexi