2015-02-07 111 views
0

我有一个图像,在我的应用程序中叠加了一个文本框。褪色文本背景的CSS

我试图摆弄褪色框的大小。它太高了,但改变标题页边距高度并不是为了降低高度。

任何人都可以看到什么需要改变,以减少文本框的高度?

感谢

.module { 
    background: url(glowcell.jpg); 
    background-attachment: fixed; 
    width: 100%; 
    min-height: 540px; 
    position: relative; 
    overflow: hidden; 
    margin: 0px; 
} 
.module > header { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 20px 10px; 
    background: inherit; 
    background-attachment: fixed; 
    overflow: hidden; 
} 
.module > header::before { 
    content: ""; 
    position: absolute; 
    top: -20px; 
    left: 0; 
    width: 200%; 
    height: 200%; 
    background: inherit; 
    background-attachment: fixed; 
    -webkit-filter: blur(4px); 
    filter: blur(4px); 
} 
.module > header::after { 
    content: ""; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.25) 
} 
.module > header > h1 { 
    margin: 0; 
    color: white; 
    font-family: 'Quicksand', sans-serif; 
    font-size: 50px; 
    position: relative; 
    z-index: 1; 
} 

* { 
    box-sizing: border-box; 
} 
+0

请制作一个jsFiddle,而不是只发布您的CSS。 – Dai 2015-02-07 03:16:09

回答

0

很难说只用CSS,你可以发布更多?

我最好的猜测是这条线:

min-height: 540px; 

除非你想最小高度为540px,我只想用高度。但正如我所说,根据您的CSS提供更准确的答案几乎是不可能的。