将css text-shadow属性需要英寸(in)作为参数吗? [英] Will css text-shadow property takes inches(in) as parameter?

查看:136
本文介绍了将css text-shadow属性需要英寸(in)作为参数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您正在开发一个包含多个段落元素的HTML5页面。
您有以下要求:
在段落下方添加一个低于文本一英寸的阴影
将阴影的半径设置为五个像素
您需要设置样式段落以满足要求。
你应该使用哪种CSS样式?

You are developing an HTML5 page that includes several paragraph elements. You have the following requirements: Add a drop shadow that is one inch below the textin the paragraph Set the radius of the drop shadow to five pixels You need to style the paragraphs to meet the requirements. Which CSS style should you use?

A.text-shadow: 72pt 0pt 5pt

B.text-shadow: 5px lin 0px;

C.text-shadow: 72pt 5em 0px

D.text-shadow:72pt 0em 5px;

选项 B 似乎是正确的,但我没有看到任何阴影。我看到阴影输出只为选项 A& D 。哪个是对的?我很困惑:(

Option B seems to be right but I don't see any shadow. I see shadow output only for option A & D. Which is right? I'm confused :(

请参阅 http://jsfiddle.net/4v4yu/

推荐答案

在您的选项B& C中,您没有设置显示阴影(0px)的值

In your option B & C you didn't set a value to display the shadow (0px)

A.text-shadow: 72pt 0pt 5pt

B.text-shadow: 5px lin **0px**

C.text-shadow: 72pt 5em **0px**

D.text-shadow:72pt 0em 5px

在这里,您的jsfiddle修复: http://jsfiddle.net/ 4v4yu / 10 /

Here your jsfiddle fix : http://jsfiddle.net/4v4yu/10/

您应该查看所有允许单位的w3c文档: http://www.w3.org/TR/css3-values/#length-value

You should take a look at the w3c documentation for all the allowed units : http://www.w3.org/TR/css3-values/#length-value

这篇关于将css text-shadow属性需要英寸(in)作为参数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆