The operation of javascript background image is very simple! _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:23:17
Original
1058 people have browsed it

javascript text editing background image background cutting

There is a picture, which is composed of many small pictures.
Now I want to use the small picture on the picture as the background image of each button.
How should I capture the picture?
I hope it can be compatible with various browsers.


I’m looking for a text editing tool for blogging. Can anyone recommend it?

Please help and give me some ideas

Reply to the discussion (solution)

The first question is positioning using the background-position parameter of the background attribute of css Each image.

The advantage of concentrating the images on one image is that these buttons only need to request the image once and can be used everywhere, which is beneficial to improving the loading speed of the web page.

Recommended text editing tools fckeditor Before, other friends also recommended ueditor and the like. There are many

The first question is to use the background-position parameter of the background attribute of css to position each picture.

Put the pictures into one The advantage of the image is that these buttons only need to request the image once and can be used everywhere, which is beneficial to improving the loading speed of the web page.

The text editing tool recommended is fckeditor. Other friends have also recommended ueditor and the like before. Many

Editing tool, the kind I want to insert into the web page?


The first question is to use the background-position parameter of the css background attribute to position each image.

The advantage of concentrating the images on one image is that these buttons only use requests Once the image can be used everywhere, it is beneficial to improve the loading speed of web pages.

Text editing tool recommendation fckeditor Other friends have also recommended ueditor and the like before. There are many

editing tools, I want to insert The kind that goes to a web page?

Please search these two on Baidu to see if they are what you need

Now I want to use the small picture on the picture as the background image of each button.
How should I capture the picture
Hope it can be compatible with various browsers.
re:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">a {background-repeat: no-repeat;text-indent: -999px;display: block !important;width: 18px;height: 15px;}a.cur {background: url(http://mu8.bdstatic.com/player/t/i/mwRYVJPC.png) no-repeat -120px -72px;}</style></head><body><a class="cur" href=""><span class="wg-button-inner"></span></a></body></html>
Copy after login

I want to find a text editing tool for blogging. Can anyone recommend it?
re:

http://www.webdesignerdepot.com/2008/12/20-excellent-free-rich-text-editors/

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