Some little knowledge about CSS3

零到壹度
Release: 2018-03-21 11:42:05
Original
1106 people have browsed it

This article mainly talks about some little knowledge about CSS3 with you, I hope it can help you. Let’s take a look with the editor below.

  1. box-shadow adds a shadow to the p element
    box-shadow: h-shadow v-shadow blur spread color inset;
    h-shadow: required . The position of the horizontal shadow. Negative values ​​allowed
    v-shadow: Required. The position of the vertical shadow. Allow negative values ​​
    blur: Optional. Fuzzy distance
    spread: Optional. The size of the shadow
    color is optional. The color of the shadow. Find the full list of color values ​​in CSS Color Values ​​
    inset Optional. Change the inner shadow of the shadow from the outer shadow (at the beginning)
    2.transform: Rotate p element
    Compatibility issue:
    -ms-transform:rotate(7deg); / * IE 9 */
    -moz-transform:rotate(7deg); /* Firefox */
    -webkit-transform:rotate(7deg); /* Safari and Chrome */
    -o-transform:rotate(7deg); /* Opera */
    3.transition: Please move the mouse pointer to the blue p element to see the transition effect.
    <

    Please move the mouse pointer to the blue p element to see the transition effect.


    !DOCTYPE html>
    <html>
    <head>
    <style> 
    p
    {
    width:100px;
    height:100px;
    background:blue;
    transition:width 2s;
    -moz-transition:width 2s; /* Firefox 4 */
    -webkit-transition:width 2s; /* Safari and Chrome */
    -o-transition:width 2s; /* Opera */
    }
    p:hover
    {
    width:300px;
    }
    </style>
    </head>
    <body>
    <p></p>
    Copy after login

    Note: This example does not work in Internet Explorer.



The above is the detailed content of Some little knowledge about CSS3. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!