首页htmlbannerPage Widget - 如何创建横幅弯曲的阴影

Page Widget - 如何创建横幅弯曲的阴影

我们想知道如何创建横幅弯曲的阴影。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {
  margin: 24px;
}

h1 {
  background: #139573;
  border-bottom: 4px solid #fff;
  color: #fff;
  font-family: sans-serif;
  font-size: 24px;
  font-weight: normal;
  line-height: 70px;
  margin: 0;
  position: relative;
  text-align: center;
}

h1 strong {
  font-weight: bold;
}

h1::before {
  background: transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  border-radius: 800px/10px;
  bottom: -2px;
  content: "";
  height: 8px;
  left: 2%;
  position: absolute;
  width: 96%;
  z-index: -1;
}
</style>
</head>
<body>
  <h1>
    <strong>USF Health:</strong> To envision and implement the future of
    health.
  </h1>
</body>
</html>