body{
font-size:16px;
box-sizing:border-box;
padding:0px;
margin:0px;
}
这里面的border-box; 没有错吧。
为何vim里面 -box的颜色没变绿?
怪我咯2017-05-16 16:35:58
CSS3 has added new attributes, maybe the software has not kept up with the pace of development.
仅有的幸福2017-05-16 16:35:58
I realized you were talking about the code color - - ; border-box is correct. I’ve never used vim, so I don’t know
迷茫2017-05-16 16:35:58
Css3 attributes, that editor may not support it or it may not be updated to that extent. Consider using a different editor when writing HTML. . . , ps: After looking at the question for two minutes, I realized what you meant. . .
伊谢尔伦2017-05-16 16:35:58
First of all, this should be caused by the lack of rules in vim's built-in rules, or a configuration error.
Solution 1:
Open Vim’s configuration file, the file path is /etc/virmrc
Enter the command: vi /etc/vimrc
Add new rules to the opened configuration file
Click here for details on how to solve the problem
Solution 2:
Update to the latest version, 2333
(escape