全屏
 <ul>
      <li>Lorem ipsum dolor sit amet consectetur adipisicing elit</li>
      <li>Dolores quaerat illo totam porro</li>
      <li>Quidem aliquid perferendis voluptates</li>
      <li>Ipsa adipisci fugit assumenda dicta voluptates nihil reprehenderit consequatur alias facilis rem</li>
      <li>Fuga</li>
    </ul>
li:first-child {
  list-style-type: '?';
  font-size: 2rem;
  background: hsl(200 20% 88%);
  animation: color-change 3s ease-in-out infinite;
}

ul > li:nth-child(2)::marker {
  content: '!';
  font-size: 2rem;
  background: hsl(200 20% 88%);
  animation: color-change 3s ease-in-out infinite;
}

li {
  padding-inline-start: 1ch;
}

@keyframes color-change {
  50% {
    color: hotpink;
  }
}

ul, ol {
  max-width: 35ch;
}

html {
  block-size: 100%;
  inline-size: 100%;
}
 
body {
  min-block-size: 100%;
  min-inline-size: 100%;
  margin: 0;
  padding: 2ch;
  box-sizing: border-box;
  display: grid;
  place-content: center;
  font-family: system-ui;
  font-size: 1.3rem;
  line-height: 1.5; 
  background: hsl(200 20% 98%);
  color: hsl(200 30% 25%);
}
返回