159, svg painting box

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>angular</title>
  <style>
    div {
      width: 100px;
      height: 100px;
      background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23000' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: center center;
      background-size: 100px 100px;
      background-color:  gray; 
      border:2px solid green;
    }
  </style>
</head>
<body>
  <div></div> 
</body>
</html>

 

 

 

Guess you like

Origin www.cnblogs.com/gushixianqiancheng/p/11995689.html
SVG