How to Change blue background selection color from image using css

后端 未结 2 541
甜味超标
甜味超标 2021-01-16 05:00

Can any one help me how to remove blue color from image on selection you can see screenshot from here...

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-16 05:54

    Use

    ::selection {
    color: #e2e2e2;
    background-color: #999;
    }  
    

    Note: This only changes the font properites. Not the images.
    However if you want to remove some background from image its Impossible with CSS. CSS is meant to edit the HTML style not the images. For that use Adobe Photoshop! I am seriously not able to understand, why do you want to change the background of the image.
    Ok there can be a solution. You create an image with transparent background! And change its background. A little more elaboration please.

    Edit: You can use this for image background. But the div background will be changed. Use

    background-color: none;
    

    or

    background-color: transparent;
    

    This will not select the image. Not change the background to blue!

提交回复
热议问题