我在這個標題中有一行 Faded line。 當標題很長的線變短,褪色效果自敗 Faded line2 我用這個CSS的線H1如何讓標題中的褪色線條有所反應?
.sub_title h1:before {
content: "";
width: 42%;
position: absolute;
top: 45%;
bottom: 0;
overflow: hidden;
margin-left: -43.6%;
text-align: right;
height: 2px;
background: -webkit-gradient(radial, 60% 0%, 0, 239% 90%, 1090, from(#5CAECE), to(#fff));
}
.sub_title h1:after {
content: "";
width: 42%;
position: absolute;
top: 45%;
bottom: 0;
overflow: hidden;
text-align: right;
height: 2px;
margin-left: 1.5%;
background: -webkit-gradient(radial, 60% 0%, 0, -139% 90%, 1090, from(#5CAECE), to(#fff));
}
反正有做這一行響應,所以無論多久tilte是,線會變短,但會保持衰落效果?的
是否有可能包括更多的CSS和HTML來演示這個問題? – showdev