我是html新手,目前已經設置了單色背景。我有代碼將背景更改爲我想要的漸變顏色,但我無法使其工作。我的代碼創建了奇異的色彩背景的部分是:在HTML中創建漸變背景
</head>
<body>
<!--Start of Product Banner-->
<body style="background-color:#6e6e6e;">
<div class="row">
<div id="header_region">
<!--Start of Header Logo-->
<div id="logo" class="two_thirds">
.....
的漸變色和代碼,我想改變的是:
background: linear-gradient(to bottom,#6e6e6e 0%,#313131100%);
我曾嘗試使用此代碼打得到它工作,但似乎得到正確的語法。我如何去實現這個漸變?
這是你的網頁?在Firefox中看起來不錯。它對你有用嗎? –
有趣,在Firefox中看起來不錯,但在Chrome中有問題。謝謝! – Ctech45
好的,不客氣。 –