文章詳情頁
css - linear-gradient無效是怎么回事?
瀏覽:101日期:2022-12-18 16:49:00
問題描述
background-color: linear-gradient(to bottom, #fc8291, #fa213b);
這行代碼在chrome,firefox上均無效,無任何背景色顯示,但是background-color: red;是可以正常顯示紅色的,這是為什么?
問題解答
回答1:語法錯誤:沒-color
background: linear-gradient(to bottom, #fc8291, #fa213b);
標簽:
CSS
相關(guān)文章:
1. mysql - 新浪微博中的關(guān)注功能是如何設(shè)計表結(jié)構(gòu)的?2. android-studio - Android Studio 運行項目的時候一堆警告,跑步起來!?3. MySQL數(shù)據(jù)庫中文亂碼的原因4. angular.js使用$resource服務(wù)把數(shù)據(jù)存入mongodb的問題。5. 如何解決Centos下Docker服務(wù)啟動無響應(yīng),且輸入docker命令無響應(yīng)?6. angular.js - 關(guān)于$apply()7. dockerfile - [docker build image失敗- npm install]8. 表單提交驗證,沒反應(yīng),求老師指點9. angular.js - Ionic 集成crosswalk后生成的apk在android4.4.2上安裝失敗???10. 我在centos容器里安裝docker,也就是在容器里安裝容器,報錯了?
排行榜

熱門標簽