First, floating and clear floating
Float Property:
Left: the element floats to the left;
Right: the element floats to the left.
Clear property:
Left: Clear to float;
Right: clear floating;
Both: Left and right floating together to clear.
Second, use CSS to draw triangles
Put a div in the Web page, define its style property as follows {
width:100px;
height:100px;
border-right:20px solid red;
border-bottom:20px solid white;
border-left:20px solid white;
border-top:20px solid white;
} effect
When we set the width and height of the div to 0px, the triangle appears.
Third, overflow overflow treatment
Three ways to handle overflows:
1. Hide the overflow part directly
Syntax: Overflow:hidden;
2. Display the overflow part through the scroll bar (there are scroll bars regardless of overflow)
Syntax: Overflow:scroll;
3. Display the overflow part through the scroll bar (if no overflow, no scroll bar; if overflow, automatically add scroll bar)
Syntax: Overflow:auto;
Iv. tags that are rarely used now
1. Frame Tags: Embed other people's pages into their own web pages
Syntax: <iframe src= "Web url" frameborder= "width=" "height=" "></iframe>
2. Audio Tags: put mp3, mp4
Syntax: <video src= "url to mp3 file" controls AutoPlay loop></video>
<audio src= "" Controls AutoPlay loop></audio>
Controls: Control bar; autoplay: autoplay; loop: Loop play
3.marquee
It was a cruel passage, but I laughed out loud.
<marqueeDirection="Down"Width="250"Height="200"Behavior="Alternate" style= "border:solid "> < Marquee behavior=< Span class= "token punctuation" > "Alternate" > This text would bounce </marquee > </marquee>
This paragraph is a bit interesting. Emmmmmmmmmmmm
HTML Learning Notes (v)