简体   繁体   中英

css text-shadow

Is there a way to add a text-shadow in CSS that is similar to the text-shadow created in Photoshop? I have tried, but the resulting shadow is still different than in Photoshop.

The short answer is no .

Adobe Photoshop and all the different browsers interpret shadows differently from one another. You'll have to judge with your eyes.

Hey no you can do this

.div{
box-shadow:0 0 0 0 rgba(0,0,0,1); //  outer shadow of box
box-shadow:0 0 0 0 rgba(0,0,0,1) inset; // inner shadow of box
text-shadow:0 0 0 rgba(0,0,0,1); // for text shadow 
}

more info click here http://css-tricks.com/snippets/css/css-text-shadow/

try like this

yourDiv
{
box-shadow: 8px 8px 5px #000000;
}

try different pixels according to the design, and as well as color, use color picker to check exact color code.

As mentioned above its not at all possible. As browser renders the shadow differently than photoshop.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM