<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title></title>
  <style>
ul{
  display:flex;
}
li:first-child,
li:last-child{
  width:50px;
  background-color: green;
}
li:nth-child(2){
  flex:1;
  background-color: yellow;
}
  </style>
</head>
<body>
<ul>
  <li>1</li>
  <li>2</li>
  <li>3</li>

</ul>
</body>
</html>

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2022-01-04
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
相关资源
相似解决方案