значения свойства:
.a {
min-width
:
300px
;
height
150px
background-color
#3BA9DE
}
#div
1
{
#56A31D
.b {
#852E76
.a { min-width: 300px; height: 150px; background-color: #3BA9DE; } #div1 { height: 150px; background-color: #56A31D; } .b { height: 150px; background-color: #852E76; }
<!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"
>Hello World!</
br
id
"div1"
I was dreaming about Hawaii. I was dreaming about my holiday. In
my dream, I was on the beach in Hawaii. The hot sun was shining on
my face. The sound of the sea was all around me.
"b"
But it was a dream. Three weeks ago, I had been lying on a beach
in Hawaii. But I was not in Hawaii now. I was dreaming in my office
in Los Angeles. I had returned from my holiday and there was no
work for me. Nobody wanted to hire me. I went to my office every
day, but the telephone didn't ring. So I slept in my chair and I dreamt
about Hawaii. But it was a dream. Three weeks ago, I had been lying on a beach
about Hawaii.
/*JavaScript*/
document.getElementById("div1").style.minWidth = "300px";
/*jQuery*/
$(document).ready(function () {
$(".b").css("min-width", "300px");
});