我在wordpress頭上工作,我想要有一個漸變底部邊框,如下圖所示。在IE瀏覽器中沒有顯示漸變css邊框firefox
這在Crome中正常工作,但它似乎並不能在IE或Firefox中工作。我不是很擅長css,我承認我從其他地方獲得了這些代碼。我如何讓漸變邊框出現在IE和Firefox中?
CSS:
.entry-header {
/* The main titles links as displayed in the articles*/
color: #F1F1F1;
display: inline-block;
transition: all .3s ease;
font-family: 'Oswald', sans-serif;
padding-top: 5%;
background-color: #1F1F1F;
width: 100%;
/*The following code defines the linear gradient colors below each header - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
border-top:0px;
border-right:0px;
border-left:0px;
border-bottom: solid transparent;
border-bottom: 4px;
-moz-border-image: -moz-linear-gradient(left, #009C61 14.28571429%, #cc0099 28.57142857%, #cc9900 42.85714287%, #cc0033 57.14285716%, #0099cc 71.42857145%, #6600cc 85.71428574%, #66cc00 100%);
-webkit-border-image: -webkit-linear-gradient(left, #009C61 14.28571429%, #cc0099 28.57142857%, #cc9900 42.85714287%, #cc0033 57.14285716%, #0099cc 71.42857145%, #6600cc 85.71428574%, #66cc00 100%);
border-image: linear-gradient(to right, #3acfd5 0%, #009C61 14.28571429%, #cc0099 28.57142857%, #cc9900 42.85714287%, #cc0033 57.14285716%, #0099cc 71.42857145%, #6600cc 85.71428574%, #66cc00 100%);
border-image-slice: 1;
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
}
不要感到驚訝,如果你不能得到它工作在IE,這不是很容易得到現代CSS在Internet Explorer中工作。至於使它在Firefox和Chrome中工作,它看起來應該起作用。我可以讓它在Chrome中運行,但Firefox似乎不起作用。嘗試在FF中研究[線性漸變](https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient)。我認爲你的CSS可能不適合firefox。 – Njord