3

border-width doesn't work.

header {
    background-color: #58ACFA;
    text-align: center;
    border-width: 5px;
    border-color: black;
}

I tried to use border-size and it did not work.

How can I do it?

4

2 回答 2

6
header {
    background-color: #58ACFA;
    text-align: center;
    border-style: solid;
    border-width: 5px;
    border-color: black;
}

你概率。忘记边框样式。我给你加了。也可以一行完成

border: 5px solid #000;
于 2013-11-03T11:12:16.303 回答
3

尝试:

header {
    background-color: #58ACFA;
    text-align: center;
    border: 5px solid black;
}

这与

header {
    background-color: #58ACFA;
    text-align: center;
    border-style: solid;
    border-width: 5px;
    border-color: black;
}
于 2013-11-03T11:11:09.767 回答