css 与框阴影的Rudimetary覆盖

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 与框阴影的Rudimetary覆盖相关的知识,希望对你有一定的参考价值。

{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
// alert('Hello world!');
<img src="http://csssecrets.io/images/adamcatlace.jpg" class="lightbox" />
<p>Bacon ipsum dolor amet consectetur
 short loin
 ut
 tri-tip
 alcatra
 ground round
 jowl
 beef
 meatloaf
 in
 pork.  Elit
 chicken
 ea
 spare ribs.  Shank
 andouille
 ex
 boudin
 picanha
 turkey
 esse.  Do
 doner
 fugiat
 tongue.</p><p>Pork chop
 ad
 cow
 spare ribs
 capicola
 ball tip
 alcatra
 cillum
 magna
 short ribs
 tempor.  Pork loin
 do
 sint
 magna
 ea
 pork belly
 duis.  Shoulder
 ullamco
 chicken
 porchetta, ham
 anim
 veniam
 venison.  Fugiat
 tenderloin
 venison, turducken
 non
 pork chop
 ribeye
 enim.  Beef
 turkey
 salami, ipsum
 prosciutto
 commodo
 cupidatat.  Tri-tip
 ham hock
 non
 brisket
 pig
 cupim commodo
 ball tip
 nulla
 turkey
 kielbasa
 corned beef
 flank.  Hamburger
 pariatur
 ham, porchetta
 cupidatat
 sirloin
 pork loin
 quis
 nulla
 culpa
 tail
 esse.</p><p>Chuck
 filet mignon
 flank
 pork chop
 mollit
 enim
 veniam
 sed
 pork loin
 aliquip
 sausage
 prosciutto
 in
 deserunt.  Nostrud
 porchetta
 non
 nulla
 sunt.  Cupim et
 velit
 picanha
 laborum salami
 capicola
 exercitation
 alcatra
 sausage
 cillum
 shoulder
 minim
 esse.  Pig
 boudin
 aliquip
 aute, tail
 ut
 cow
 incididunt
 short loin
 aliqua.</p><p>Et
 dolor
 occaecat
 dolore
 doner
 shoulder.  Swine
 pancetta
 tri-tip
 irure
 turducken, kevin
 est
 meatball
 aliqua
 aute
 quis
 ham
 venison
 sunt.  Consequat
 pancetta
 sint
 beef
 turkey.  Fugiat
 occaecat
 commodo, short ribs
 corned beef
 aliquip
 elit
 eiusmod
 pork belly
 ut
 eu
 tri-tip.  Sint
 aute
 picanha
 proident
 corned beef
 ad
 beef
 dolore
 landjaeger.  Laboris
 est
 deserunt
 tempor, bresaola
 ham hock
 non
 brisket
 frankfurter
 ad
 leberkas
 aute
 sirloin.  Minim
 et
 ribeye
 shank
 pork loin
 sint
 corned beef
 ball tip
 dolor.</p><p>Doner
 alcatra
 pastrami
 pig, strip steak
 eu
 in
 frankfurter
 occaecat
 in
 filet mignon
 chuck
 short loin
 nulla
 meatloaf.  Adipisicing
 aliqua
 kielbasa
 nulla
 proident.  Ground round
 meatloaf
 kevin, shank
 adipisicing
 pork
 frankfurter
 t-bone
 spare ribs
 cupidatat.  Sed
 ham
 non
 duis
 enim, in
 ipsum
 fugiat
 est
 tongue
 short ribs
 ad
 bresaola
 prosciutto.  Non
 minim
 picanha, ad
 in
 occaecat
 fugiat
 veniam
 dolor
 deserunt.</p>
/**
 * Rudimetary overlay with box-shadow
 */

.lightbox {
	position: fixed;
	top: 50%; left: 50%;
	margin: -200px;
	box-shadow: 0 0 0 50vmax rgba(0,0,0,.8);
}

以上是关于css 与框阴影的Rudimetary覆盖的主要内容,如果未能解决你的问题,请参考以下文章

为啥背景颜色与框阴影重叠?

用 CSS 设计漂亮的阴影,css阴影和原理,所有知识点多图动画演示

146前端 | 你所不知道的 CSS 阴影技巧与细节

CSS之box-shadow属性

iOS:父视图覆盖的子视图阴影

box-shadow阴影覆盖问题