.srcImg
{
position: absolute;
background: url(/Users/ShareAnimation/Desktop/23456.png);
background-repeat: no-repeat;/*设置及是否重复原图,比如repeat-x表示在水平方向重复*/
width: 22px;
height: 22px;/*根据定位的位置,然后选取一个width,height的矩形*/
left: 10px;
top: 10px;
cursor: pointer; /*光标类型,这里为小手*/
outline: none; /*变宽样式,none表示无边框*/
z-index: 1000; /*元素堆叠顺序*/
background-position: -27px -200px; /*定位图像某一位置*/
}
![]()
我的样式代码是这样的,截取后的效果图如下:
这个边框我设置border:none,outline:none都没有效果,这是为啥呢?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
为什么不是这个图里本身有一个border 呢
border: 0 !important;