значения свойства:
.a {
width
:
300px
;
height
100px
background-color
#3BA9DE
overflow-x:
visible
white-space
nowrap
}
#div
1
{
#56A31D
.b {
#852E76
.c {
#C1AE00
auto
.d {
#CCCCFF
overflow-x: no-display;
/*NOT WORK!!!*/
.e {
#CCFF00
overflow-x: no-content;
.a { width: 300px; height: 100px; background-color: #3BA9DE; overflow-x: visible; white-space: nowrap; } #div1 { width: 300px; height: 100px; background-color: #56A31D; white-space: nowrap; } .b { width: 300px; height: 100px; background-color: #852E76; white-space: nowrap; } .c { width: 300px; height: 100px; background-color: #C1AE00; overflow-x: auto; white-space: nowrap; } .d { width: 300px; height: 100px; background-color: #CCCCFF; overflow-x: no-display; /*NOT WORK!!!*/ white-space: nowrap; } .e { width: 300px; height: 100px; background-color: #CCFF00; overflow-x: no-content; /*NOT WORK!!!*/ white-space: nowrap; }
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
link
href
"css/style.css"
rel
"stylesheet"
script
type
"text/javascript"
src
"https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
></
</
body
div
class
"a"
But it was a dream. Three weeks ago, I had been lying on a beach
in Hawaii.
br
id
"div1"
"b"
"c"
Hello World!
"d"
"e"
/*JavaScript*/
document.getElementById("div1").style.overflowX = "hidden";
/*jQuery*/
$(document).ready(function () {
$(".b").css({ "overflow-x": "scroll" });
});