首页htmlborderPage Widget - 如何创建带有负边框半径的斜角角...

Page Widget - 如何创建带有负边框半径的斜角角...

我们想知道如何创建带有负边框半径的斜角角。...

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#default {
  border: ridge 20px orange;
}

#customized {
  border: solid 10px;
  border-right-color: red;
  border-bottom-color: red;
  border-left-color: blue;
  border-top-color: blue;
  margin: 0;
}

div {
  border: solid 10px;
  border-right-color: blue;
  border-bottom-color: blue;
  border-left-color: red;
  border-top-color: red;
}
</style>
</head>
<body>
  <p id="default">This is a paragraph with default ridge</p>
  <div>
    <p id="customized">This is a paragraph with customized ridge</p>
  </div>
</body>
</html>