Why won't my JavaScript open this modal box?

后端 未结 4 475
没有蜡笔的小新
没有蜡笔的小新 2021-01-20 22:54

I\'m trying to call up a click element to open up a modal box, and i\'m unsure what I\'m doing wrong.

I\'ve done basic debugging, but I\'m still relatively new to this,

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-20 23:40

    You have a click handler on your

    but it doesn't give the user any way to click it

    Add this css snippet and you should be able to click the element

    #teal {
      height: 50px;
      width: 50px;
      background-color: blue;
    }
    

提交回复
热议问题