HTML ID with numerical value not recognized by CSS

后端 未结 4 452
迷失自我
迷失自我 2021-01-21 12:20

Here is the div:

I got 9 of them with different positions on page so in the .css file I d

4条回答
  •  孤城傲影
    2021-01-21 12:44

    Change id="1" to id="one" since you cannot use numbers in CSS to select an id or class. Then just use div#one { // CSS Here } since you don't really need to include the class. After all you can only have one id with a specific name per page.

提交回复
热议问题