首页htmlui_olHTML Element Style - 如何避免ul边界的双边框

HTML Element Style - 如何避免ul边界的双边框

我们想知道如何避免ul边界的双边框。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
ul {
  border: 1px solid grey;
}

li+li {
  border-top: 1px dotted grey;
}
</style>
</head>
<body>
  <ul>
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
  </ul>
</body>
</html>