Background knowledge: Border-image, gradient, multiple backgrounds, CSS animations
Background Knowledge Explained1. Border-imageThe border applies a background image, and the image is automatically divided into four equal portions, respectively, for four borders. When you use the Border-
CSS + DIV webpage style and layout-page Background image effects, cssdiv
After the CSS text effect is the page of the webpage, the page must have images to be more colorful. Pictures make our life more diversified, if some images are inserted in an article, they will be more eye-catching. Now we will reveal what the image
In the p+css layout of the page, encountered IE6 (of course, sometimes Firefox will encounter) in the browser of the picture element img Under the extra blank space problem is absolutely common to the problem of the solution is also " "According to the reasons of the different to use different solutions, here to solve the image image layout to solve the problem o
The CSS background attribute "Background" provides many attribute values, such as color, image, positioning, etc., which provides a great convenience for the definition of Web page background image. Look at the property values provided by background:
Background:background-color background-image background-repeat backg
Let's take a look at the 3D effect of a pure CSS image. Please go to my codepen to see the effect, as shown in.
Start status on the left and hover on the right. The implementation principle is shown in. Use div. img loads the upper half of the image ,. img: fefore pseudo class to implement the lower half of the image
{position:Absolute; Left:50%;Top:50%;Transform:Translate ( -50%, -50%); }img{width:100%;}style>The problem is that when the picture is wide, the width:100% is set, and the picture is a long chart. height:100% is required. This will require the use of JS to determine the operation, very pit dad.Today I happen to see an article: Layout https://github.com/xiangpaopao/blog/issues/9 like a pictureIt mentions the background map setting Background-size:contain can scale the maximum value of the
In the past, JavaScript was used to control the image size. Sometimes our advertisements become small, so they are generally directly controlled in the content area, this method uses the css expression method. I wonder if the Taoist school has ever encountered such a situation: When the CSS controls the image size, if
In the Liehuo. Net tutorial, a reader asked today about the effect of switching an image when making the mouse. This effect is also called a roll-over effect ). Originally, most of these effects were implemented using Javascript. In fact, CSS can be easily used for making them.
Here is the simplest result. There are a lot of changes in the complex results. Interested readers can study it in depth.
Let's tak
Nginx image, css, js cache, and nginxcssjs Cache
At the beginning, we set up the nginx environment to achieve load balancing and distributed clusters. Now we can use the nginx cache mechanism to optimize the speed. The following describes the cache of nginx images, css, and js.
# Set the image cache time location ~ .
Research on picture flip Menu Technology Fastcompany is a work of simplebits.com webmaster's full CSS + Div layout.
Website navigation uses CSS image flip. you can use a: link, a: hover, and so on to display different background-images. I think the author's uniqueness lies in a: hover in CSS...
# Nav a: hover {ba
For more information, see vue + webpack to solve the problem that the resource file cannot be found after the css referenced image is packaged,
Use vue to package and reference image resources through css.
. Img {height: 500px; width: 100%; background: url ("./assets/img/1.jpg") no-repeat; background-size: 100% ;}
T
Article Navigation:
Chapter 1: Basic rounded corner Frame
Chapter 2: transparent rounded background image
In the previous article, we used an image with a gradient between top and bottom as the background of the title and applied it to the rounded corner. Is this round corner box only applicable to monotonous images? Can we also make some images with rich colors transparent and rounded?
The answer is yes. L
Image optimization:
Image Quality Requirements and Image File Size determine the format of the image you use, and use a smaller image file to present a better image quality.
When the image
CSS Background color settingsbackground-color:red; Set the background color to red;Background color settings support 3 ways of writing:Color name16 binaryRgbCSS Background Image color settingsBackground-image:url (image address), such as setting a background imageThe path is not in the description!CSS background pictur
When layout the page Div + CSS, you may encounter IE6 (sometimes in Firefox) the problem of unnecessary blank space under the IMG Image Element in the browser is absolutely common. The solution to this problem is also "on the fly". Different solutions should be used based on different causes, here we will summarize the common methods to solve the bug of unnecessary space under the
Attention point: background:blue;AndBackground-color:blue;Not the same!First, about background settings:1) background:blue;2) Background-image:url (image name);When the background has both a color and a picture, which one in the back is in effect, as shown in the following example;Here is the "new song" of this picture as the background picture involved in this article.When the picture is the background, if the picture is smaller than the page size, t
One. Crawl the picture in the CSS:
> 1. First, prepare for the job:
> First, the original CSS path is stored in the $url variable, and then the content of the CSS is saved in Abc.css.
> Because of the situation that often encountered multiple CSS files, so little evil does not directly fill a
Button posted on front end Porter February 1, 2015 view:4041HTML5CSSCSS3 Double click in any area of the article to add "commentary" to the article! Float to the commentary point to see the details.A very popular form of Web page is full screen large map, this article will be the simplest way to achieve this effect. CSS Properties background-size are used, without JavaScript.First look at the demo, open, adjust the browser window size, observe th
The background attribute "Background" of CSS provides many attribute values, such as color, image, and positioning, which greatly facilitates the definition of background images on webpages. Check the attribute values provided by background:
Background: Background-color | background-image | background-repeat | background-attachment | background-Position
From
In the above case, I only gave the most original rounded corner frame model, but it still has some shortcomings. For example, you cannot apply an image to a rounded corner. In this example, I will make some innovations based on the above. The background image is rounded. It seems that no such function application is available on the network. I have only seen how to implement it using js, you can refer to th
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.