1.box-shadow property adds one or more shadows to the box.
Syntax: box-shadow: h-shadow v-shadow blur spread color inset
h-shadow is required, the position of the horizontal shadow, negative values are allowed.
v-shadow is required, the position of the vertical shadow, negative values are allowed.
blur Optional blur distance.
spread Optional, the size of the shadow.
color Optional, the color of the shadow.
inset is optional, changing the outer shadow (outset) to the content step shadow.
Example:
Result: If Figure
uga hand in .shadow{width: 300px; height: 150px; margin: 0 auto;
background: yellow; box-shadow: 4px 4px 3px #000 inset;}
Result: As shown in the figure
#2.border-radius
## The element adds a rounded border. grammar: Border-Radius: 1-4 LENGTH | % / 1-4 LENGTH | %;
border-radius: 2em 1em 4em / 0.5em 3em; Equivalent to: border-top-left-radius: 2em 0.5em; border-top-right-radius: 1em 3em ; border-bottom-right-radius:4em 0.5em;
border-bottom-left-radius:1em 3em; wealth in indie / 4em >> style>
.radius-test1 { width: 100px; height: 100px;
margin: 0 auto; border: 50px solid #cd0000;
50%; }
style >
3.border-image
Element border background
Used to set attributes:
border-image-source The path to the image used in the border
border-image-slice image border Inward offset
Border-image-width The width of the image border
Border-image-outset The amount of the border image area beyond the border
Border-image-repeat Whether the image border is tiled (repeated)
Rounded or stretched by default.
The border divides border-image into 9 parts: border-top-image, border-right-image
border-bottom-image, border-left-image, border-top-left-image
Border-bottom-right-image located in the four positive directions has no display effect and will not be tiled... Example:
Example: (tiled round)
}
Result: As shown in the figure
repeat;}
Result: as shown
gradient Gradient Divided into linear-gradient (linear gradient) and radial-gradient (radial gradient)
linear-gradient
Syntax background: -webkit-linear-gradient(top,#ccc,#000); Parameters: There are three parameters in total. The first parameter represents the direction of the linear gradient, top is from top to bottom,
left means from left to right. If it is defined as left top, it means from the upper left corner to the lower right corner.
The second and third parameters are the starting point color and the end point color respectively.
Example:
Result: As shown in the figure
:You can fill in the angle
gradient radial gradient.
cred legend_> style>
.gradient{width:300px; height: 180px;
>
wanted must need should be required
.gradient{width:300px; height: 180px; background:-webkit-radial-gradient(
& gt;
Result: as shown
Example: The use of keywords at different sizes.
,green,yellow ,black);}
Repeating radial gradient
The repeating-radial-gradient() function is used to repeat radial gradient Example:
background: -webkit-repeating-radial-
gradient(red, yellow 10%, green 15%);}
Result: As shown in the figure
:25px;
overflow:hidden;border:1px
solid #000;}
.box{width:400px;height:30px;
background:-webkit-repeating-
green 10px,#fff 10px,#fff 20px); transition:3s;}
left:-10 0px; }
Result: As shown in the figure
Positioning
Syntax: background-origin: padding-box|border-box|content-box;
The padding-box background image is positioned relative to the padding box.
Border-BOX background image is expensive for
Content-BOX background image relative moon content box to position
Example:
& lt; style & gt ;border:1px solid black;padding:35px;background-image:url('1.png');
background-repeat: no-repeat; background-position: left; background-origin: content-box;}
6.background-clip
Specify the drawing area of the background
Value: border-box The background is clipped to the border box
The padding-box background is clipped Cropped to the padding box
content-box The background is clipped to the content box
no-clip: Crop the background outward from the border area.
Example:
x solid #92b901;}
More css3 UI modifications - review For related articles, please pay attention to the PHP Chinese website!

I got this question the other day. My first thought is: weird question! Specificity is about selectors, and at-rules are not selectors, so... irrelevant?

Yes, you can, and it doesn't really matter in what order. A CSS preprocessor is not required. It works in regular CSS.

You should for sure be setting far-out cache headers on your assets like CSS and JavaScript (and images and fonts and whatever else). That tells the browser

Many developers write about how to maintain a CSS codebase, yet not a lot of them write about how they measure the quality of that codebase. Sure, we have

Have you ever had a form that needed to accept a short, arbitrary bit of text? Like a name or whatever. That's exactly what is for. There are lots of

I'm so excited to be heading to Zürich, Switzerland for Front Conference (Love that name and URL!). I've never been to Switzerland before, so I'm excited

One of my favorite developments in software development has been the advent of serverless. As a developer who has a tendency to get bogged down in the details

In this post, we’ll be using an ecommerce store demo I built and deployed to Netlify to show how we can make dynamic routes for incoming data. It’s a fairly


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

WebStorm Mac version
Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download
The most popular open source editor