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

Summarize the User-Agent of popular browsers

1. Basic knowledge: Http Header User-Agent User A...

How to use mysql to complete the data generation in excel

Excel is the most commonly used tool for data ana...

A brief discussion on the types of node.js middleware

Table of contents Overview 1. Application-level m...

How to define input type=file style

Why beautify the file control? Just imagine that a...

Web page comments cause text overflow in IE

The experimental code is as follows: </head>...

HTML+CSS implementation code for rounded rectangle

I was bored and suddenly thought of the implementa...

Analysis of the Principle and Method of Implementing Linux Disk Partition

remember: IDE disk: the first disk is hda, the se...

Master-slave synchronous replication configuration of MySQL database under Linux

The advantage of the master-slave synchronization...

js to achieve the complete steps of Chinese to Pinyin conversion

I used js to create a package for converting Chin...

Detailed example of using js fetch asynchronous request

Table of contents Understanding Asynchrony fetch(...

The complete process of Docker image creation

Table of contents Preface Creation steps Create a...

Share 9 Linux Shell Scripting Tips for Practice and Interviews

Precautions 1) Add interpreter at the beginning: ...

Sample code for a simple seamless scrolling carousel implemented with native Js

There are many loopholes in the simple seamless s...