什么是base64,iVBORw0K ....在css? [英] what is base64,iVBORw0K.... on css?

查看:998
本文介绍了什么是base64,iVBORw0K ....在css?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是非常新的学习者。我正在学习php,mysql和css。我正在读许多源代码来理解真正的程序员如何工作。在一个网站上,我看到一个源代码,有人在css上写下面这行。

I am very new learner. I am learning php, mysql and css. I am reading many source code to understand how the real programer work. On a site i saw a source code where some one wrote the following line on the css..

background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDVRzAAAAA3NCSVQICAjb4U/gAAAALElEQVQImWMwMrJi+v//PxMDw3+m//8ZoPR/qBgDEhuXGLoeYswhXg8R5gAAdVpfoJ3dB5oAAAAASUVORK5CYII=) 100% 100%;

现在我不明白什么是base64,其余的不可读代码是什么?
你可以在这里找到style.css的整个源代码
http://blogaddition.com/2013/01/database-driven-multi-level-horizo​​ntal-css-menu-with-php-and-mysql/

Now i am not understanding what is base64 and what is the rest of non readable code? You can find the whole source code of style.css here http://blogaddition.com/2013/01/database-driven-multi-level-horizontal-css-menu-with-php-and-mysql/

请帮助我学习和理解。

please help me to learn and understand.

推荐答案

Base64是一种编码类型,允许您放置任何类型的可能包含特殊字符的数据导致解析错误)到代码中,只是数字和字母。
http://en.wikipedia.org/wiki/Base64

Base64 is a type of encoding that allows you to place any type of data that might have special characters in it (which would cause errors in parsing) into the code as just numbers and letters. http://en.wikipedia.org/wiki/Base64

数据:image / png; base64,是一个键,告诉浏览器以下字符串包含一个编码版本一个图像。不是从远程URL加载图像,而是直接包含在CSS页面中。浏览器将该字符串解码为图像文件。 http://zh.wikipedia.org/wiki/Data_URI_scheme

The sequence, data:image/png;base64, is a key that tells the browser the following string contains an encoded version of an image. Instead of loading the image from a remote URL, it is included right into the CSS page. The browser will decode that string into the image file. http://en.wikipedia.org/wiki/Data_URI_scheme

这篇关于什么是base64,iVBORw0K ....在css?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆