Home > Web Front-end > JS Tutorial > How to operate unordered list attributes in JS

How to operate unordered list attributes in JS

php中世界最好的语言
Release: 2018-03-19 09:24:54
Original
4156 people have browsed it

This time I will show you how to operate the unordered list attribute in JS, and what are the precautions for operating the unordered list attribute in JS. The following is a practical case, let's take a look.

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

1. Attributes of unordered lists

## List-style is divided into three subcategories

    (1)

list-style-type##     none: No mark. disc: solid circle (default). circle: hollow circle.

square: solid square. decimal: number.

                               

list-style-position

    inside number or grid style is inside li and occupies The width of li

The outside is outside the li and does not occupy the width of li

                                                           tle ui LI ’ and does not occupy the    of li’s width

    (3) list-style- image Use images to replace the tags of list items

2. Four ways to hide

 (1) visibility: hiddenHide the element, but the position it should occupy in the web page is still occupied

  (2) display: none The element is displayed as none and does not occupy the position.

  (3) opacity: 0 transparency

  (4) height: 0 height is 0

A brief introductionJavaScript

# Scripting language used for special effectsForm verification

1. Composition (1) ECMAScript core

(2) Bom browser object model

                                                                                                                                                                               through (Document Submit Click)

            (3) Dom document object model.

Introduce external files Double tag

2. Classification

(1) Inline< onClick=”alert()”>

## (2) Inline (Position is not limited) #  

##  

Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template