首页htmlborderPage Widget - 如何使后代元素覆盖父类的边框样式

Page Widget - 如何使后代元素覆盖父类的边框样式

我们想知道如何使后代元素覆盖父类的边框样式。

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

.no_border {
  border: 1px solid white;
}
</style>
</head>
<body>
  <p class="border">
    This text has a border <span class="no_border">and this text
      doesn't</span>
  </p>
</body>
</html>