jQuery & CSS - Remove/Add display:none

前端 未结 13 2433
遥遥无期
遥遥无期 2020-12-12 12:37

I have a div with this class :

.news{
  width:710px; 
  float:left;
  border-bottom:1px #000000 solid;
  font-weight:bold;
  display:none;
}
<
13条回答
  •  无人及你
    2020-12-12 12:51

    In JavaScript:

    getElementById("id").style.display = null;
    

    In jQuery:

    $("#id").css("display","");
    

提交回复
热议问题