css文件存储图片

css

16-7-28 11:17:16

<style type="text/css">
.aaa {
    width: 200px;  /* 图片宽度 */
    height:200px;  /* 图片高度 */
    border: 1px solid #F00;
background: center url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAJYBAMAAABMSIXvAAAAMFBMVEWWlpaenp7s7Ozf39/Ly8u2traurq6mpqbm5ub////5+fnExMTz8/PZ2dnS0tK9vb29J4OpAAAGFElEQVR4AezBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYPbtArqRvI4D+GfqWZ3F3V3P3d0vt4/c4QR3mBPc3SE4cxpc1oKtnuRwJ7hDcKez1ts0aQeb19fXJi+L0859Ir9fknn2/Uv8erlwgwNOLNkrZT0MR3JiLI4vjuhtW6kExJ/7Zlk3g3EcR/7HBvx3TFb05jYnnBgBX/tMTTcB7UpewprSG9FMEoLE6DG6GZCLsNq8of8hM83xJfMETOYjrIDQXpr0pLOHQz3kICyEeiiVioCnlc5Rwdulkf9LQ/4LCno7gVNRiLlTZ0MZ05XoNjmeWW0iey09VruW37BQBbygdA4EpYdFermYVflahj18/wSnAJtk0sSxjb9dATr7fPPs68NC/RiZGvBYOLW455lmGP9kAgSpbsJkkYZ12lFrwzFeuotdqzfWE72hXINTZFa8emXTyEYUGDoBb6kZWPnrFy7SsNJVj4ZPl/RHuWi2CdtXUQKGS7h2VY6WIdZguAicEISCD5mN0bMYX1ZDoKtaLsKqhbgShSJQguNRiGFW836Y1FW4uF86ZMoWtCH/YUuvbNfG3uixDL3VP+G6CAy/JesUKos3rLX6SRMZf3/BNbCSPL/OGtTdlbesYOzHt8DsF1zB/fap5/TtzoAOCtTNsaYCD//oncpABEjXVOQ0rBS0SXQVeXoTqBqVyWtYfYzWLavLTPOQ7fkOq62HMgK2gvPV4Q8feGk5vxt8WaCHQw/1hocL7vZKQ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9uDAwIAABAEQP9fdyMVIAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwqejFCTHD8PEAAAAASUVORK5CYII=") ;   
 }
</style>

<img   class="aaa"/  >





把图片拖到exe程序上面,编码在剪切板里

小工具下载Pic2Base64.zip