Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 我想在html中创建下面这样的推荐图片_Jquery_Html - Fatal编程技术网

Jquery 我想在html中创建下面这样的推荐图片

Jquery 我想在html中创建下面这样的推荐图片,jquery,html,Jquery,Html,请帮助我如何在html中创建这种类型的推荐 您可以使用CSS伪元素:before或:after创建它。我做了一个快速的HTML结构,检查这个 CSS: HTML: 创建三个div。旋转divs到45度。你会得到你想要的谢谢。这对我真的很有帮助。Y .profile { width: 200px; height: 200px; display: block; color: rgba(0, 0, 0, 0); -webkit-transform: rotate(45deg);

请帮助我如何在html中创建这种类型的推荐


您可以使用CSS伪元素:before或:after创建它。我做了一个快速的HTML结构,检查这个

CSS:

HTML:


创建三个div。旋转divs到45度。你会得到你想要的谢谢。这对我真的很有帮助。Y
.profile {
  width: 200px;
  height: 200px;
  display: block;
  color: rgba(0, 0, 0, 0);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  margin: 80px;
  overflow: hidden;
}

.profile::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 393px;
  top: -100px;
  left: -200px;
  z-index: -1;
  background: url(https://cdn.pixabay.com/photo/2017/06/26/15/00/seascape-2444040_640.jpg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
<div class="profile">
  <!-- Overlay div content goes here -->
</div>