小编fen*_*n1x的帖子

为什么我不能用border-radius做一个圆?

* {
  margin: 0;
}

div {
  background-color: green;
  height: 900px;
  width: 50%;
  margin: auto;
  border-radius: 50px;
  overflow: hidden;
  padding: 20px;
  border: 4px solid red;
  box-sizing: border-box;
}

div:hover {
  box-shadow: 5px 5px 5px 1px blue;
}

@media screen and (max-width:600px) {
  div {
    background-color: aqua;
    color: red;
    width: 100%;
    height: 10%;
  }
  body {
    background-color: chocolate
  }
}

.divas {
  background-color: yellow;
  position: relative;
  margin-top: 20%;
  height: 300px;
  border-radius: 50%;
}
Run Code Online (Sandbox Code Playgroud)
<div>This is text . This is text . …
Run Code Online (Sandbox Code Playgroud)

html css

3
推荐指数
1
解决办法
8349
查看次数

如何在像真棒字体的图标上添加阴影效果

我想在图标上的悬停效果上添加阴影:

在此处输入图片说明 在此处输入图片说明

有没有办法使用CSS添加阴影效果?该图标来自font-awesome。提前致谢。

css css3

2
推荐指数
1
解决办法
3894
查看次数

标签 统计

css ×2

css3 ×1

html ×1