When using layui, I found that the style of the checkbox was wrong. I found a lot of reasons. The final positioning was that the document declaration was not written.
<!DOCTYPE html> This is a declaration of h5, it must be written so that the browser can correctly identify this as h5