Forcing label to flow inline with input that they label

前端 未结 7 1212
时光取名叫无心
时光取名叫无心 2020-12-13 17:55

I need the label to stay on the same line as the input field they are labeling. I want these elements to flow like they normally would when the window resizes, i just want t

7条回答
  •  旧巷少年郎
    2020-12-13 18:19

    Put the input in the label, and ditch the for attribute

    
    

    But of course, what if you want to style the text? Just use a span.

    
    

提交回复
热议问题