Home >Web Front-end >JS Tutorial >How to operate unordered list attributes in JS
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) # script >
##
## Function xxx(){
alert();
## }script >
(3) External
Comments // Single-line comments /**/css comments are multi-line comments used in js
Execute in order, so js is placed behind the code displayed on the pageI believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the PHP Chinese website!
Recommended reading:
What are the steps for jest to test react native components
The difference between button and input in the form
The above is the detailed content of How to operate unordered list attributes in JS. For more information, please follow other related articles on the PHP Chinese website!