search

Home  >  Q&A  >  body text

Does anyone know what went wrong with this CSS? ? ?

*{margin: 0px;padding: 0px;}
.header{width;100%;height:40px;background-color:#ccc;}Does anyone know where this CSS went wrong? ? ? Since there is no response

か瘾公子か瘾公子2155 days ago1209

reply all(5)I'll reply

  • 粽叶飘香

    粽叶飘香2019-02-13 08:49:22

    Add a float and try. It may not be a block-level element. Also, width:100%; replace it with mine

    reply
    0
  • 韦小宝

    韦小宝2019-02-11 17:42:49

    Clear your browser’s cache and take a look

    reply
    0
  • 紫霞仙子我爱你

    紫霞仙子我爱你2019-02-11 16:23:46

    Do you have the class name .header

    reply
    0
  • か瘾公子

    There is this category

    か瘾公子 · 2019-02-11 16:24:23
  • 秋香姐家的小书童

    秋香姐家的小书童2019-02-10 20:12:28

    .header{width;100%;height:40px;


    Look carefully. Is there a colon or a semicolon after width? ? ? What should it be? 》? ? ? ?




    reply
    0
  • か瘾公子

    It’s a colon, but it’s not right to change it to a colon in English.

    か瘾公子 · 2019-02-10 20:44:58
  • Cancelreply