微信小程序通过background-image设置背景:只支持线上图片和base64图片,不支持本地图片;
.my-o{
background-size:100% 100%;
-moz-background-size:100% 100%;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAERUlEQVRYhc2Ze4hXRRTHP7ta5pYQZpkWrFhamZWaJZpZlpSRj16UVkIEWv5hRGq0SAQSUSn0sIxCC9OISIktCXuuWWZlD9I/rJbSyDXpsbKa4KNMjpzRs+P93Zn7cHe/f83MnbnzYe6ZM+fMrWoadR0l6GpgNHAp0Bc4BagCdgBbgPXAauDdolMVBZ4O3AtcGNm/EXgJeBr4N8+E1XkGAcOA74GFCbBNwOfAWuBX71k/YB7wI3BtWwFPBb7wQP8AHgOGA32Ay4CRWh4MPKym4SRmswqoyzp5p5m1/bL0vx943mubD9ykAFuBA97z7cAa4DlgP3CVeSa2XwN8GAuQZYVvAZ4y9X+AscBsLYf0H/ComtNW0/dBYEYsROym6wVsM/Vm9Qg/x07kSbzIV2oaTgOATaGBsSv8qin/r7aaF1b0N3AJ0GLalscMjAEeCowx9duAn7IzHiX5SvbzygpPDA2KAZ5jyh8AbxZnPax1wCJTfyg0IGTD3fSzVWn9LOCXUlCP6CQ1keO1pTfwe6XOoRW+3MB+fAxgUQ/zuqmPS+scAh5qymWagi+74QandQwBn2nK60vDO1obTcvpaR1DwCeY8p8lAvraCezTtpq0jiFgG1F1LRWxtWTDddKW/WkdQ8DNpjygREBffQxwc1rHELC1rfGlIraW9a2ph1IIeI0pT/JsukzdY961qgjwZrPKYsPPHgPYOuMZJMD6Jq1zzNE835QleL+yGF8rnauBv9MLoQGx4eU2DTFFe4FBwA8FYU8DNgA9tS5urTuwO21QbHg5xZS7aCw7Ij8r5wPfGljR3SFYMgB/BCww9W6aZM7Kzso0XdkzTJsc+6/FDM6SIt0HrPDa5ulqTzbRVpIkgLoBaABe9Ob9FLg1FiLPvcQCdUPHee0SEr6nn3q7tp0KXARco4eD1QGN0u7MMnneixSJrm7OM9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