The CheckBox check box realizes the effect of clicking the text

 To achieve the effect of clicking on the "logistics" to select the first check box, the method that comes to mind is to add a label to the input and logistics

This modification can achieve the effect of clicking the text to select the check box, but the final desired effect is to click the tr to select the check box, that is, click the line where the "logistics" is located to select the check box.

 

The way to achieve this is to make the label occupy the entire tr, and set the width and height of the label to 100%

The problem is successfully solved so far. 

Guess you like

Origin blog.csdn.net/liangmengbk/article/details/109066968