静态准星代码怎么写

2024-04-28 11:35:32
静态准星代码怎么写,麻烦给回复
写回答

最佳答案

cl_crosshairstyle 0 //普通准星

cl_crosshaircolor 4 //准星颜色,4为红色

cl_crosshairusealpha 1 //是否开启准星透明度,1开启,0关闭

cl_crosshairdot 0 //是否显示中心小点,1显示,0不显示

cl_crosshairsize 5 //准星大小,0为正常

cl_crosshairthickness 0 //准星厚度,默认0.5

2024-04-28 11:35:32
赞 3159踩 0

全部回答(2)

代码示例如下:

//CSS

.csgo-aim {

width: 10px;

height: 10px;

background-color: #ccc;

border-radius: 5px;

transition: all 0.3s ease;

-moz-transition: all 0.3s ease;

-webkit-transition: all 0.3s ease;

}

.csgo-aim:hover {

width: 15px;

height:15px;

background-color: #999;

border-radius: 10px;

}

//HTML

<div class="csgo-aim"></div>

2024-04-28 11:35:32
赞 4211踩 0