gpt4 book ai didi

jquery - 在选择器之前使用 css

转载 作者:太空宇宙 更新时间:2023-11-04 11:07:10 25 4
gpt4 key购买 nike

我正在尝试将一张图片重叠在另一张图片上,然后用它们制作一个圆形图片。

enter image description here

    <span onclick="someFunction()" id="swatch_123456" class="slider-color-swatches" style="background-image: url(anyImage.png);"></span>

.slider-color-swatches{
position: relative;
width: 28px;
height: 28px;
border-radius: 50%;
cursor: pointer;
display: inline-block;
vertical-align: top;
overflow: hidden;
margin-bottom: 10px;
margin-right: 10px;
}
.slider-color-swatches::before{
content: '';
position: absolute;
background-image: url('anyOtherIamge.pnenter image description hereg');
left: 20%;
width: 100%;
height: 200%;
top: 0;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
transform: rotate(45deg);
}

Here are the images as to what I want to do and where Iam able to get so far

最佳答案

试试这个..可能有用..

{
width: 28px;
height: 28px;
overflow: hidden;
display: block;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
margin-bottom: 10px;
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
margin: 0 auto;
}

关于jquery - 在选择器之前使用 css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33886501/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com