2015-02-07 69 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提供更準確的答案几乎是不可能的。