1
壮大なポップアップで画像の影の不透明度と潜在的な色を変更しようとしています。私はポップアップのCSSで遊んでみました。バックグラウンドで#番号を変更します。無駄に。助けてください 。私はフレームワークとしてブートストラップを使用しています。ここで がCSSです:magnificポップアップで影の背景色を変更する
/* The shadow behind the image */
.mfp-figure {
line-height: 0; }
.mfp-figure:after {
content: '';
position: absolute;
left: 0;
top: 40px;
bottom: 40px;
display: block;
right: 0;
width: auto;
height: auto;
z-index: -1;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
background: #444; }
.mfp-figure small {
color: #BDBDBD;
display: block;
font-size: 12px;
line-height: 14px; }
.mfp-figure figure {
margin: 0; }
影の色は、赤、緑、青の成分(最初の3つの '0 '値)を変更する' box-shadow'プロパティ値の 'rgba(0、0、0、0.6);'多分色を変えるでしょう。 –
ありがとうございます。しかし、私はそれを動作させるように見えることはできません。私はちょうど堅実な黒の背景と100%不透明が欲しい。ありがとう。 – Ddavis