no-repeat failure

  • Problem background: The scss language is used to write the background picture, and the picture disappears. The following code:
background-image:url(../images/close.png) no-repeat;  
  • Cause of the problem: In the case of background-image, only the url attribute can be added, and other attributes cannot be added;
  • Solution: Remove the image limit to increase the range of modified attributes
background:url(../images/close.png)  no-repeat;

Guess you like

Origin blog.csdn.net/qinqinzqq/article/details/126291077