Summary of CSS3 practical methods (recommended)

Summary of CSS3 practical methods (recommended)

1. Rounded border:

CSS CodeCopy content to clipboard
  1. border -radius : 4px ;

2.Box shadow:

CSS CodeCopy content to clipboard
  1. box-shadow : 5px   5px   3px   #000 ; /* The parameters are rightward expansion distance, downward expansion distance, shadow width, color*/   

3. Background image size:

CSS CodeCopy content to clipboard
  1. div{
  2. background : url (bg_flower.gif);
  3. -moz- background - size : 63px   100px ; /* Older versions of Firefox */   
  4. background - size : 63px   100px ;
  5. background-repeat : no-repeat ;
  6. }

4. Background image location

CSS CodeCopy content to clipboard
  1. div{
  2. background : url (bg_flower.gif);
  3. background-repeat : no-repeat ;
  4. background - size : 100% 100%;
  5. -webkit- background -origin: content -box; /* Safari */   
  6. background -origin: content -box; /*border-box, padding-box*/   
  7. }

5. Text Shadow

CSS CodeCopy content to clipboard
  1. text-shadow : 5px   5px   3px   #000 ; /*The parameters are rightward extension distance, downward extension distance, shadow width, and color */   

6. Force automatic line wrapping

CSS CodeCopy content to clipboard
  1. p {
  2. word-wrap:break-word;
  3. }

7. Column

CSS CodeCopy content to clipboard
  1. div{
  2. column-gap: 3px ; /* Length of the gap between columns */   
  3. -moz-column-count:3; /* Firefox */   
  4. -webkit-column-count:3; /* Safari and Chrome */   
  5. column-count:3;
  6. }

The above summary of CSS3 practical methods (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/daisykoo/archive/2016/05/24/5522362.html

<<:  Detailed explanation of three ways to set borders in HTML

>>:  Detailed explanation of .bash_profile file in Linux system

Recommend

Introduction to user management under Linux system

Table of contents 1. The significance of users an...

A brief discussion on the correct posture of Tomcat memory configuration

1. Background Although I have read many blogs or ...

HTML marquee tag usage examples

This tag is not part of HTML3.2 and only supports ...

CSS eight eye-catching HOVER effect sample code

1. Send effect HTML <div id="send-btn&quo...

How to use MySQL 5.7 temporary tablespace to avoid pitfalls

Introduction MySQL 5.7 aims to be the most secure...

Solution to the problem of var in for loop

Preface var is a way to declare variables in ES5....

Detailed explanation of common template commands in docker-compose.yml files

Note: When writing the docker-compose.yml file, a...

React native realizes the monitoring gesture up and down pull effect

React native implements the monitoring gesture to...

Simple implementation method of Linux process monitoring and automatic restart

Purpose: Under Linux, the server program may be d...

Docker builds python Flask+ nginx+uwsgi container

Install Nginx First pull the centos image docker ...

Tips for designing photo preview navigation on web pages

<br />Navigation does not just refer to the ...

How to install redis in docker and set password and connect

Redis is a distributed cache service. Caching is ...

CentOS uses expect to remotely execute scripts and commands in batches

Sometimes we may need to operate servers in batch...