HTML Learning Notes (v)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.