Shadow is one of the most commonly used CSS effects. The CSS3 standard has added the shadow attribute. Next we will discuss the implementation of shadow in various browsers. CSS3 shadow
Use in CSS3Box-shadowThe basic syntax is as follows:
Box-
Sumoselect is a cross-device, cross-browser jquery drop-down list box plugin. The jquery drop-down list box plugin can be either single-selected or multiple-choice. Its style can be customized through CSS files. Its most important feature is that it can be used across device
positive value, the shadow is at the bottom of the object, and its value is negative, the shadow is at the top of the object;
Shadow blur radius: this parameter is optional, but its value can only be positive. If its value is 0, it indicates that the shadow has no blur effect, the greater the value, the blurrier the e
Bytes
Time:
Source: Unknown
Author: Big treasure
Click:
641 Secondary reading tool: Font: big, medium, small, irrelevant
In the web page UI, the projection effect is a very common performance. For example, kaixin.com's avatar modification effect:
However, in the css2 era, we mostly use images to achieve similar effects, or use other CSS attributes to simulate shadow effects. However, now, the rise of css3 makes this problem no longer a probl
CSS3 box-shadow (shadow and shadow)-small knowledge description, css3box-shadowBasic description:
Shadow:Box-shadow: X axis Y axis Rpx color;
Attribute description (in sequence ):The X axis of the Shadow (negative value can be use
equivalent to "flex-wrap", but unfortunately this does not support a mixed-syntax browser.
So, I added the following code in the example to implement the Flebox effect of browsers that support flexbox blending, but not flexbox:
. no-flexbox section { display:-webkit-box; Display:-moz-box; -webkit-box-orient
CSS3 properties box-shadow usage tutorial, css3box-shadow, css3box-shadow
The box-shadow attribute of CSS3 allows us to easily implement layer shadow effects. Let's take a closer look a
these mainstream browsers, when using the Box-shadow property on browsers such as WebKit-based chrome and Safari, we need to write the name of the property in-webkit-box-shadow form. The Firefox browser needs to be written in-moz-box
type= "Text/javascript" src= "Jquery-1.7.2.min.js"> script>type= "Text/javascript" src = "Jquery.enplaceholder.js" > Script >Examples show:
Http://www.ifrans.cn/demo/enplaceholder.htmlJquery.enplaceholder.js Download$ (' #form1 input, #form1 textarea '). placeholder ();In browsers that do not support placeholder, placeholder disappears when the contents of a text box are simulated by inserting a suspended span element:$ (' #username2, #password ').
Basic notes:outer shadow:box-shadow:x axis y-axis Rpx color;Property Descriptions (in order): Shadow's X-axis (negative values can be used) Shadow's y-axis (negative values can be used) shadow blur value (size) Shade colorinner Shadow:box-shadow:x axis y-axis Rpx color inset;The default is an outer shadow inner shadow: Inset can be set to an inner shadowNote (PS)
entire Shadow is extended. If the value is negative, the entire Shadow is reduced.
Color
Shadow color, an optional parameter. If no color is set, the browser will take the default color, but the default color of each browser is different, especially in the Webki
CSS3 properties box-shadow usage tutorial, css3box-shadow
The box-shadow attribute of CSS3 allows us to easily implement layer shadow effects. Let's take a closer look at this property.1. brow
CSS3The Box-shadow property allows us to easily implement a layer shadow effect. Let's do the actual combat to explain this property.1. Browser Compatibility for Box-shadow propertiesLet's take a look at the
inside the element by adding the inset keyword. Note that you may need to add extra padding to expand the space.
Box-shadow simulating translucent matte layersMany times, we need to use a mask layer like this to darken the background with a translucent matte layer, highlighting some UI components to enhance the user experience.Conventional practice usually uses an extra element, which is used as a mas
translucent matte layersMany times, we need to use a mask layer like this to darken the background with a translucent matte layer, highlighting some UI components to enhance the user experience.Conventional practice usually uses an extra element, which is used as a mask layer, or at least a pseudo-element, before or after .Not considering the compatibility of the lower version, in fact, using Box-shadow ca
I. Definition and usageThe Box-shadow property adds one or more shadows to the box.Box-shadow:h-shadow v-shadow blur spread color inset;
H-shadow required. The position of the horizontal shadow. Negative values are allowe
CSS3 Filter:drop-shadow filter differs from Box-shadow applicationThis post was posted on May 18, 2016, Wednesday, 01:07, classified as CSS related. Read 5,777 times, 12 times todayby Zhangxinxu from http://www.zhangxinxu.comThis address: http://www.zhangxinxu.com/wordpress/?p=5380To use the standard CSS3 to achieve the projection effect of an element, there are
positive, and if its value is 0 o'clock, indicates that the shadow does not have a blur effect, the greater the value of the shadow the more blurred the edge;Shadow expansion radius: This parameter is optional, its value can be positive negative, if the value is positive, then the entire shadow is extended, the invers
The box-shadow attribute of css3 allows us to easily implement layer shadow effects. Let's take a closer look at this property.
First, let's take a look at the browser compatibility of this attribute:
Opera: I don't know which version is supported. I'm posting this article.ArticleDuring the test, opera is upd
; height:200px; Background:white; border:1px solid Lightgrey; margin:100px Auto; Text-align:center; line-height:200px; box-shadow:0 0 10px Rgba (0,0,0,0.3), 0 0 10px Rgba (0,0,0,0.3) inset; } body{
Using the after pseudo-class selector to add a virtual label after the Box1 subset, because it
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.