значения свойства:
* {
margin
:
0
;
padding
}
.text {
text-align
justify
.a, .b, #div
1
, .c {
height
100px
width
300px
background-color
#E3E3E3
10px
.a {
position
absolute
clip
auto
.b {
top
150px
: rect(
,
275px
75px
);
#div
{
* { margin: 0; padding: 0; } .text { text-align: justify; } .a, .b, #div1, .c { height: 100px; width: 300px; background-color: #E3E3E3; margin: 10px; } .a { position: absolute; clip: auto; } .b { position: absolute; top: 150px; clip: rect(0, 275px, 75px, 0); } #div1 { position: absolute; top: 300px; }
<!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 text"
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 text"
id
"div1"
"text"
"c text"
/*JavaScript*/
document.getElementById("div1").style.clip = "rect(0, 250px, 50px, 0)";
/*jQuery*/
$(document).ready(function () {
$(".c").css({ "clip": "rect(0, 225px, 25px, 0)", "position": "absolute", "top": "450px" });
});