有没有人可以帮助我?

时间:2017-11-11 12:51:42

标签: javascript html css html5 css3

我试图制作一个圆圈(内部清除),它有小圆圈(在形状周围),并且有到其他html页面的超链接! 我现在还没有得到任何东西,但我已经搜索过,一无所获。

1 个答案:

答案 0 :(得分:0)

你的意思是什么? A quick sample

<强> HTML

<div id="shape">
  <a class="one" href="your-page.html">Link text</a>
  <a class="two" href="your-page.html">Link text</a>
  <a class="three" href="your-page.html">Link text</a>
</div>

<强> CSS

#shape {
  position: relative;
  width: 200px;
  height: 200px;
  -webkit-border-radius: 100px;
  -moz-border-radius: 100px;
  border-radius: 100px;
  background: green;
  text-indent: -9999px;
}

#shape a {
  position: absolute;
  display: block;
  width: 24px;
  height: 24px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
  border: 1px solid black;
}

#shape a.one {
  top: 5px;
  left: 20px;
  background: red;
}

#shape a.two {
  bottom: 15px;
  left: 30px;
  background: black;
}

#shape a.three {
  top: 35px;
  right: 0;
  background: yellow;
}