Introduction to unordered list property Hiding Methods JS and js

Source: Internet
Author: User

Introduction to unordered list property Hiding Methods JS and js

I took the test today and sorted out the wrong questions.

1. unordered list attributes

List-style is divided into three sub-categories

(1) list-style-type

None: no mark. Disc: solid circle (default ). Circle: hollow circle.

Square: solid square. Decimal: Number.

(2) list-style-position

The inside number or square style occupies the li width.

Outside is outside the li and does not occupy the li width.

(3) list-style-image uses an image to replace the marker of the list item

2. Four hidden Methods

(1) visibility: hidden hides the element, but the position occupied in the webpage is still occupied.

(2) display: The none element is displayed as none, not occupying the position.

(3) opacity: 0 transparency

(4) height: 0 the height is 0.

 

 

 

A Brief Introduction to JavaScript

The script language is used for special effect form verification.

1. Composition (1) ECMAScript Core

(2) Bom browser Object Model

Window

History

Location address

Document (Document submission click)

(3) Dom Document Object Model.

External file <script type = "text/javascript" src => </script> dual tag

2. Category

(1) <onClick = "alert ()">

(2) embedded (unlimited location)

<Script type = "text/javascript">

Alert ();

</Script>

<Script type = "text/javascript">

Function xxx (){

Alert ();

}

</Script>

 

(3) External

Comments // single-line comments/**/css comments use multiple lines of comments in js

Execute in order so js is placed behind the code displayed on the page

 

Q: How many JavaScript files can be stored in one program? Are each written at the position of the execution program?

 

  

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.