CSS PNG 필렛 효과
PNG Overlay
17 January 2007 › 28 comments
PNG Overlay: Example | Download (44 KB)
Have you ever run into the problem of creating a site with pictures given by the client, only to find later after they update their photography the original look and feel is not retained? For instance, you might add a drop-shadow, rounded corners (maybe both) or some other graphical effects applied to the images. This is all well and good, but what about the webmaster or journalist who follows after you – Will he or she be able to keep the look consistent?
In order to help remedy this potential problem, here is a solution that I came up with. Basically, it involves creating a transparent PNG overlay which can be used as a mask/frame around regular JPEG or GIF. This way, a typical CMS installation can be configured so users can upload photos without having to worry about using any graphics program to apply filters. Even if you are already a whiz with graphics, it will help save you time.
The nice thing about this method is that you are just applying an absolutely positioned
<div>
with a PNG backround over the top of a regular image, so you still get the benefits of a relevant alt
attribute/value pair, as well as printing images because they are technically in the foreground as far as the browser is concerned. It will even work in IE6, with the proprietary Microsoft alpha style filter applied. IE7 will handle the transparency natively. I am not going to go in depth and explain how to make transparent overlays, because there are already plenty of Photoshop tutorials out there. For a good explanation of how to achieve this effect in Fireworks, check out the article at solarDreamStudios. I hope this demo inspires ideas and makes life easier.
css 필렛 효과도 있습니다.http://www.htmldog.com/examples/images3_3.html
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.