How do I remove Label text in Django generated form?

前端 未结 3 907
深忆病人
深忆病人 2021-02-19 16:39

I have a form that is displaying well only for the label text that I don\'t want and I have tried all I could to let it off my form but it won\'t just go...

form

3条回答
  •  自闭症患者
    2021-02-19 16:59

    just set a class for the field in the widgets and in your style add:

    .ClassName label{
        display: none;
    }
    

提交回复
热议问题