Css3 projection and css3 projection

Source: Internet
Author: User

Css3 projection and css3 projection

I have been confused for a while. Today, I began to organize myself and new knowledge.

CSS3:

Start from scratch: image/container projection and text projection are the most used on the page;

Next we will summarize a projection problem:

Box-shadow: shadow Type X axis displacement Y axis displacement shadow size shadow extended shadow color

In this case, write box-shadow: 1px 1px 5px #000. Four values indicate horizontal offset, vertical offset, shadow feathers, and Projection Color;

<Div class = "box1">
</Div>

. Box1 {width: 500px; height: 400px; background: #7f0101; box-shadow: 10px 10px 5px #500606; box-shadow: <strong> inset </strong> 1px 1px 3px # f56a6a ;}

Viewed on Google:

For inner shadow box-shadow: <strong> inset </strong> 1px 1px 5px #000;

If you want to emit light in the background, the background will be darker and the projection will be lighter.

Text is also the same as text-shadow: 1px 1px 5px #000;

 

<H2 class = "tit"> text projection

. Tit {font-size: 50px; maring-top: 20px; text-shadow: 5px 5px 4px #000 ;}

The effect of the hollow text may have come to mind:

. Tit {font-size: 50px; maring-top: 20px; text-shadow: 0px 1px 0px #000; text-shadow: 0 1px #000, 0-1px 0 #000, 1px 0 0 #000,-1px 0 0 #000;
Color: # fff ;}

Shadow can be overlapped, for example, box-shadow:-2px 0 5px green, 0-2px 5px blue, 0 2px 5px red, 2px 0 5px yellow;

Ie is the most disturbing, so for ie9, you can use filters for compatibility.

Filter: progid: DXImageTransform. Microsoft. Shadow (color = 'color value', ction = Shadow angle (numerical value), Strength = Shadow radius (numerical value ));

This filter must be used with banckground, otherwise it will become invalid. However, in addition to the filter method, you can also use jquery to implement:

$ (Document). ready (function (){

If ($. browser. msie ){

$ ('. Box1'). boxShadow (888, 5, "#"); // The box-shadow

$ ('. Box2'). boxShadow (-10,-10, 5, "# f36"); // The box2 element uses the box-shadow {multiple elements}

}

});

Supplement: browser compatibility:-khtml-konqueror

-Ms-IE

-Moz-FireFox

-O-Opera

-Webkit-Safari Chrome

For some css writing specifications, we recommend that you write the css 3 attribute of the browser's private implementation in front of the standard attribute. For example,-webkit-border-radius: 30px 10px;
Border-radius: 30px 10px;

If you have any shortcomings, thank you for pointing out that you want to learn from each other ......


How to compile CSS3 projection?

. Bg {box-shadow: 0px 1px 5px # ccc ;}
The box-shadow effect is now supported by all standard browsers without a prefix.

The 1st length value is used to set the shadow horizontal offset value of the object. It can be a negative value.

The 2nd length value is used to set the vertical offset of the shadow of the object. It can be a negative value.

The 3rd length value is used to set the shadow blur value of the object. Negative value not allowed
Fourth color value
 
Who is difficult to explain "three main display technologies of projectors "?

1. CRT (Cathode Ray Tube, Cathode Ray Tube) three-gun Projector
As an imaging device, CRT is the earliest and most widely used display technology. A crt projector is the originator of a projector.
A crt projector is also called a three-gun projector. its working principle is no different from that of a CRT display. Its luminous source and imaging are CRT. The working characteristics of a CRT projector are essentially different from those of LCD, DLP, and other projectors. It breaks down the input signal sources in R (red), G (green) on the fluorescent screen of the CRT tube B (blue), the phosphor emits, zooms in, converges, and displays color images on the large screen under high pressure.
High Resolution, good contrast, good color saturation, strong compatibility with signals, and mature technology. In terms of brightness, the brightness of a CRT projector is much lower. So far, its brightness value remains below 300 lumens. At the same time, the operations of the CRT projector are complicated, especially the complicated convergence adjustment, the large size of the fuselage is only suitable for installation in places with weak ambient light and relatively fixed, and should not be moved. Therefore, despite its early boom in the projector market, there are currently few applications of CRT Projectors, basically exiting the pre-projector market.

2. LCD (Liquid Crystal Display, LCD) projector
LCD display technology is currently one of the dominant technologies in the projector market. LCD has active and non-active liquid crystal bodies. Inactive liquid crystal reflected light, usually used on a laptop or film projector. The active liquid crystal has light transmittance. It is made into an LCD flat board and used on a projector.
LCD projectors are divided into two types: flat board and LCD light valve. Most of our commonly used flags are flat board projectors.
A. Lawn board Projector
The LCD Projector uses the electro-optic effect of liquid crystal to control the transmittance and reflectivity of liquid crystal units through a circuit, so as to generate beautiful images of different gray levels and up to 16.70 million colors. The light source of the lawn board projector is a dedicated high-power bulb. The luminous energy is much higher than that of the CRT projector using fluorescence. Therefore, the brightness and color saturation of the lawn board projector are higher than that of the CRT projector.
The area of the LCD Panel determines the projector structure and the overall volume. The smaller the area of the LCD panel, the smaller the projector's optical system can do.
At present, the LCD Projector Panel sizes are mostly 1.32 inch (1 inch = 2.54), 0.9 inch and 0.7 inch, all of which support the physical resolutions of SVGA and XGA. New LCD panels, such as the 0.79 inch and 0.99 inch panels with a high open-mouth rate, are also available.
High-temperature LCD projection LCD panel suppliers are currently only Japanese Epson and Sony manufacturers.
The advantage of LCD projector is that the color is outstanding and the brightness is relatively high. The disadvantage is that the optical efficiency is affected by the projection method, and there is a pixel phenomenon in the projection image.
The flat board projector can be divided into two types: Single-chip and three-chip. Most of the modern flat board projectors use 3-chip LCD boards (figure 1 ). The three-chip render board projector uses red, green, and blue as the control layers of red, green, and blue colors.
The three-chip render board projector has higher image quality and higher brightness than the single-chip render board projector. The lawn board projector is a relatively small volume, light weight, simple manufacturing process, high brightness and contrast, and moderate resolution. It is the most widely used projector in the market.

Figure 1 working principle of a three-chip render board Projector
B. LCD light valve Projector
LCD light valve projector uses CRT tubes and LCD light valves as imaging devices. It is a combination of CRT projector and LCD light valve. It is the projector with the highest brightness and resolution so far. The brightness can reach 2500 ANSI lumens and the resolution is 2000 ×. It is suitable for scenarios with strong ambient light and large audiences, such as ultra-large-scale command centers, conference centers, and large entertainment venues. However, they are expensive and bulky, making it difficult to maintain optical valves. Major brands include Hughes-JVC and Ampro.

3. DLP (Digital Light Processor Digital Light output) Digital projector
DLP technology is a patented technology of TI (Texas Instruments company. The projector based on DLP display technology first appeared in 1996. Its imaging device is a DMD (Digita... the remaining full text>

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.