Effect screenshots:![]() Implementation code: Copy code The code is as follows:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title></title> <style type="text/css"> .linear{ width:100%; height:600px; FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=##15A216,endColorStr=#fafafa); /*IE*/ background:-moz-linear-gradient(top,#15A216,#fafafa);/*Firefox*/ background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#15A216), to(#fafafa));/*Google*/ background-image: -webkit-gradient(linear,left bottom,left top,color-start(0, #15A216),color-stop(1, #fafafa));/* Safari & Chrome*/ filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#15A216', endColorstr='#fafafa'); /*IE6 & IE7*/ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#15A216', endColorstr='#fafafa')"; /* IE8 */ } </style> </head> <body> <div class="linear"></div> </body> </html> |
<<: Determine the direction of mouse entry based on CSS
>>: Common CSS Errors and Solutions
1 Download and start Tomcat Go to the official we...
The relationship between Javascript and DOM is ve...
Table of contents Preface 1. Configure gzip compr...
As a useful terminal emulator, Xshell is often us...
Passing values between mini program pages Good ...
Table of contents 1. Introduction to Compose 2. C...
Running environment, Idea2020 version, Tomcat10, ...
In the previous sections, we discussed aspects of ...
Table of contents 1. What is a prototype? 2. Prot...
Preface Any application that can be written in Ja...
CSS Selectors Setting style on the html tag can s...
As we all know, mailto is a very practical HTML ta...
Table of contents Styles in uni-app Summarize Sty...
Problem Reproduction When using HTML for editing,...
How to install and configure MySQL on Mac OS 10.1...