event
keyboard up
Bounce release: keyup Case press trigger: keypress 13 is the enter key
mouse event
- Mouse click: click
- Mouse over: mouseover
- mouseout::mouseout
- Get the mouse focus: focus
- lose focus: blur
- Mouse movement: mousemove
- Mouse up: mouseup
- Mouse down: mousedown
- Triggered only when the content changes: change
cursor type
- Xiaobai: default
- small hand: pointer
- move: move
- Text: text Disallow: not-allowed
CSS
- Wrap: flex-wrap: wrap
- Form spacing clear: cellspacing="0"
- Normal font weight: font-weight: normal;
- The font is normal and not inclined: font-style: normal;
- Remove underline: text-decoration: none
- Add strikethrough: text-decoration: line-through;
- Disable scaling: user-scalable=no
- Set whether to wrap: flex-wrap: wrap; wrap: wrap; nowrap; no wrap
- Set the main axis alignment: justify-content: space-around; left alignment: flex-start, right alignment: flex-end:; center: center; remaining space allocation: space-around; :space-between,
- Set the side axis alignment: align-items:center;
- Transparency: opacity
- Background gradient: background: linear-gradient (to top to bottom left to right red 0%, red25%, red 50%, red 75%, red 100%)
- Absolute positioning: position: absolute;
- Relative positioning: position: relative;
- Shadow properties: box-shadow: 0 0 0 2px #ccc;
JS
- Intercept string: slice (intercept from that subscript)
- Keep several decimal places: toFixed (reserve n decimal places)
- Add after the element: append()
- Add in front of the element: prepend()
- Convert to decimals: parseFloat()
- Turn positive number: parseInt()
- Interception: splice(index,many,items) parameter index -> the subscript of the item to be deleted parameter many -> the number to be deleted, 0 means not to delete the parameter items can be omitted -> add new items to the array
- Get local time: new Date().toLocaleString()
- Ternary operator: The expression (A) ? (B) : (C) evaluates to B when A evaluates to true and to C when A evaluates to false