Several CSS3 tag shorthands (recommended)

Several CSS3 tag shorthands (recommended)

border-radius: CSS3 rounded corners
Syntax: border-radius: 25px;

Ellipse corners: Syntax -border-radius: xx%; or 15px/100px;

box-shadow: CSS3 box shadow
Syntax: box-shadow: 5px 5px 10px #eee;

border-image: Create a border using an image
Syntax: border-image:url(xx.xxx) 30 30 round
Round means flattening, stretch means stretching

background-size: Customize the size of the background image
Syntax: background-size:--px --px;
The background image completely fills background-size: 100% 100%;

background-origin: specifies the location area of ​​the background image border-box padding-box content-box

CSS3 allows multiple background images: background-image:url(img_flwr.gif),url(img_tree.gif);

CSS3 Gradients

linear-gradients: linear gradient
Syntax: background: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet);

Use transparency
Syntax: linear-gradients(to right,rgb(255,0,0,0),rgb(255,0,0,1));

To add transparency, we use the rgba() function to define the color stops. The last argument in the rgba() function can be a value from 0 to 1 that defines the transparency of the color: 0 means completely transparent, 1 means completely opaque.

radial-gradients: radial gradient
The syntax is the same as for linear-gradients and is not repeated here.

text-shadow: text shadow
Syntax: text-shadow: --px --px --px #eee;

word-wrap:break-word If a word is too long to overflow the text box, this tag forces a line break

The above article on several CSS3 tag shorthands (recommended) is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

Original URL: http://www.cnblogs.com/zhouliang/archive/2016/07/06/5647213.html

<<:  The basic principles and detailed usage of viewport

>>:  Use pure CSS to achieve scroll shadow effect

Recommend

How to operate MySql database with gorm

1. Setting case sensitivity of fields in the tabl...

How to implement a binary search tree using JavaScript

One of the most commonly used and discussed data ...

Tutorial on installing php5, uninstalling php, and installing php7 on centos

First, install PHP5 very simple yum install php T...

Installation tutorial of mysql 5.7 under CentOS 7

1. Download and install the official MySQL Yum Re...

Bootstrap 3.0 study notes CSS related supplement

The main contents of this article are as follows:...

A summary of some of the places where I spent time on TypeScript

Record some of the places where you spent time on...

Raspberry Pi msmtp and mutt installation and configuration tutorial

1. Install mutt sudo apt-get install mutt 2. Inst...

React dva implementation code

Table of contents dva Using dva Implementing DVA ...

Docker's health detection mechanism

For containers, the simplest health check is the ...

Several ways to manually implement HMR in webpack

Table of contents 1. Introduction 2. GitHub 3. Ba...

Detailed tutorial on how to install MySQL 5.7.18 in Linux (CentOS 7) using YUM

The project needs to use MySQL. Since I had alway...

Detailed explanation of the execution process of JavaScript engine V8

Table of contents 1. V8 Source 2. V8 Service Targ...

How webpack implements static resource caching

Table of contents introduction Distinguish betwee...

How to hide and forge version number in Nginx

1. Use curl command to access by default: # curl ...