看不到那两个小圈

来源:1-7 盒阴影

AnError

2017-11-02 11:50:27

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>talk</title>
    <style type=""="text/css">
      div {
        width: 500px;
        height: 300px;
        border: 1px solid black;
        border-radius: 50%;
        font-size: 24px;
        font-weight: bold;
        text-align: center;
        line-height: 300px;
      }
      div::before,
      div::after {
        position: absolute;
        content: "";
        display: block;
        border: 1px solid black;
        border-radius: 50%;
      }
      div::before {
        width: 50px;
        height: 50px;
        bottom: -25px;
        right: 25px;
      }
      div::after {
        width: 20px;
        height: 20px;
        bottom: -75px;
        right: 0px;
      }
    </style>
  </head>
  <body>
    <div>
      大家好,欢迎来到慕课网!
    </div>
  </body>
</html>


写回答

3回答

小丸子爱吃菜

2017-11-02

那你就调整一下定位方向值啊

0

小丸子爱吃菜

2017-11-02

也可以将伪元素的bottom和right值改一下,改成正的,大一点的,就更明显了!

http://img.mukewang.com/climg/59facc5b00016a0010821045.jpg

0
hnError
h 这不是我要的效果啊,为什么在屏幕的右下角,我想让它再大圆的右下角
h017-11-02
共1条回复

小丸子爱吃菜

2017-11-02

你给生成的伪元素设置一个背景颜色就能看到了~

祝学习愉快!

0
hnError
h 好像不是背景色的问题,设置了背景色一样没有
h017-11-02
共1条回复

0 学习 · 5760 问题

查看课程