This article mainly introduces the CSS image of the mosaic technology, has a certain reference value, now share to everyone, the need for friends can refer to
Image flattening is a collection of individual images.
A Web page that has many images may require a long event to load and generate requests for multiple servers.
Using
Image mapping is to turn some areas into hotspots, we get search images on the internet, there will be a brief description of the task on the image, there is a contact more is the QQ Space album, browse the QQ space photos of the mouse slide to the character avatar when you choose to mark the characters, are the picture and content mixed together to perform. Users look at the picture is not cold cold pictur
picture should be the path relative to the page file, not the path to the CSS file, or use an absolute path.In summary, the definition of compatibility can be:
The code is as follows
Copy Code
. pngbox {. Background:url ("translucent.png") no-repeat 0 0;. _filter:progid:dximagetransform.microsoft.alphaimageloader (src= ' translucent.png ', sizingMethod= ' scale ');. _background:none;}
For more information on the
Picture size 80*40, that is, each picture size 40*40, how to display pictures in 20*20?1. First look at how to display the second picture in 40*40:normal display of CSS code . Sprite {background-image:url (spritesheet.png); background-repeat:no-repeat;display:block;}. sprite-circle {width:40px;height:40px;background-position: -40px 0;} Normal display HTML code
2. Next, display the first image in 20*20:pr
Using xhtml + css for webpage layout has many attributes related to operations on background images. Most of the images on many performance factors are processed using the background. All attributes of CSS background can be processed.Body {Background: white url (images/bg.gif) no-repeat top right;}This is a combination of the following attributes:Background-color, as we have mentioned earlier.Background-
Use. the image cannot be displayed after the htaccess redirection. CSS becomes invalid. There are three subdirectories under the root directory of my website, which are bound to different host names under the same domain name and under the root directory respectively through htaccess. the specific content of htaccess is as follows: nbsp; lt; IfModulemod_rewrite.c gt; nbsp; RewriteEngineOn nbsp; Rewrite
Updated to version 0.11
Fixed the problem of poor quality of GIF images in the 0.1 version.
With the latest source file, the executable file. Thank you for your feedback. (To use this tool, you must install Microsoft's dot net framework 2.0)
----------------------------------------------------------------
With version 0.1
The Css background image merging tool adds several auxiliary functions:
Added
When using Div to support images, we found that it was good under IE7.
Not in IE6 ~~~
Later I found that there were two reasons:1. IE6 does not support PNG format2. You can use the filter of CSS Microsoft to solve the problem.
But the simplest way is to convert the PNG format to the GIF format.
Be sure not to be cheated by the file name ~~I am cheated, and I have been searching for it for a long time ~~Only real GIF formats are supported.
The
Before I write nine Gongge adaptive layout, each grid is using Media Finder (@media) or JS dynamic set CSS, according to different phone screen width, suitable for different mobile phones, but this has a great disadvantage, that is mobile screen size too much, you have to write a lot of code, To achieve the effect we want.Today's whim, the use of pure CSS to achieve the effect I want, below and everyone to
In the div+css layout of the page, it is very common to encounter the problem of extra blank in the picture element of the browser under IMG. The solution to this problem is also "play by ear", according to the different reasons for different solutions, here to solve the image of the solution directly below the layout of the redundant gaps in the common method of induction, for your reference.
1. Convert a
JS + CSS: How to automatically change the switching direction of image slides
This article mainly introduces how to automatically change the switching direction of javascript + CSS image slides. The example shows how to use javascript to operate on slides in the switching direction of images, which has some reference v
Css
Web page, we like to use the "mouse through the image" in DW (DREAMWEAV), because it is really attractive! But we also found that a problem: when the speed is not too fast, the mouse after the picture has not been downloaded, it looks very beautiful. And also need a lot of JS code, also need to preload through the picture. Comparatively troublesome! Especially for those who are now notepad to hand-write
css| Mouse
When we used tables to lay out our pages, we liked to use the "mouse over the image" in DW (DREAMWEAV) because it was really fascinating! But we also found that a problem: when the speed is not too fast, the mouse after the picture has not been downloaded, it looks very beautiful. And also need a lot of JS code, also need to preload through the picture. Comparatively troublesome! Especially for t
Nginx image, css, and js 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 ~ . *. (Gif | jpg | j
this code to make the above settings effective: How to align the image vertically in the DIV using the background method. Example: body {Background: URL (http://www.w3cn.org/style/001/logo_w3cn_194x79.gif) # fff no-repeat center;} the key is the final center, which defines the position of the image. It can also be written as "top left" (upper left corner) or "bottom right", or "50 30"
How to vertically cen
If there is a three-dimensional picture on the page, there will always be a high-tech feeling. In fact, three-dimensional design is not difficult, we can achieve three-dimensional effect through CSS. Very simple to understand, first we can have such a simple idea, in order to highlight the three-dimensional, to let the shadow around the middle light, that is, CSS shadow stereoscopic effect, here is used:: B
is a jquery1.2 version of the use of Ajax to clear the browser JS,CSS, image caching methods.jquery has ifmodified and cache parameters since 1.2, so you don't have to add headers.Ifmodified Boolean Default:falseallow The request to being successful only if the response have changed since the last Reques T. checking the last-modified header. Default value is false, ignoring the header. Cache Boolean defaul
There is such a requirement that the content is an unordered list and the project symbol of the list must use thumbnails. In this article, we use the CSS Method for layout implementation. For details, refer to create an HTML page, the content is an unordered list that contains at least five best-selling books. The previous project symbols of each book must use thumbnail of the overview cover. This information can be obtained from the Web.
[Django] configuration of Django's css, image, and js static file production environment, djangocss
In Django, if HTML files introduce css, js files, or image images in external ways,
Keywords: django static file django production environment django1.8
Body:
Step 1: Create a static folder under the django project dire
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.