Is it possible to have transparent rendering of images in Photoshop? I tried to save both jpg and gif with the selected transparency, but when I overlay it in css, it displays the background color behind it, and not the image that is under it. I played with z-index and it did not help.
thank
JPEG images do not support transparency.You need to save the image as a PNG file that supports transparency.
If you need IE6 support, you also need to use filterproeprty .
filter
, , , . JPEG .
, -. GIF PNG-8 , 256 . , 100% 100% .
- PNG-24. , 100% 100% ( 256 ).
, , , -.
, IE PNG-24.
( ) . , , , . , "" " ". PNG , "". SAVE , PNG , , , GIF , jpg.
SLaks, PNG. JPEG , , GIF ...
, CSS, :
background-image: url(../images/translucent_white.png);
, . PNG.
.png, , , IE6. , , , . , .
, ( ), .png, IE6, SLaks. , javascript, , .
, .gif - , .
.gif filetype; ..jpg ..pngs - , IE6. ( AlphaImageLoader .)
First of all, make sure your image has a transparent background in Photoshop - often a white and gray checkerboard. Then select “Save for Internet” (or something close to it, it varies in different versions) from the “File” menu, select everything that was done in GIF, and make sure “Transparency” is checked.
Source: https://habr.com/ru/post/1743573/More articles:С# ASP.NET Binding Controls через общий метод - genericsLooking for a way to highlight specific words in text areas? - javaSetting up a project to create third-party libraries for Android - javaTrying to get a WCF client to work with the wess 1.0 username token - wcfC # do we have some .config files for the project? - c #Database solutions for 200 million letters / day, monthly summarization requests - databaseHow to combine similar method calls into a delegate template? - c #If py2exe includes my data files (for example, include_package_data) - pythonProblem with null evaluation in IIF statement (Access) - nullOpen Queueing Solutions for search, mark done, then delete - queueAll Articles