久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

多個背景圖像 IE8

Multiple background images IE8(多個背景圖像 IE8)
本文介紹了多個背景圖像 IE8的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

是否有任何 jquery 插件(或任何其他方式)強制 IE8 顯示多個背景圖像?

Is there any jquery plugin (or any other way) to force IE8 to show multiple background images?

推薦答案

適用于 Internet Explorer 和舊版 Mozilla Firefox 的 CSS3 多背景

這個庫通過從樣式和鏈接標簽中讀取 CSS 代碼,為 Internet Explorer 6-8 和 Firefox <=3.5 帶來了對多個背景圖像的支持.

This library brings support for multiple background images to Internet Explorer 6-8 and Firefox <=3.5 by reading the CSS code from style and link tags.

CSS3 瀏覽器支持擴展到背景圖像、背景位置、背景重復.該庫僅實現了自己的速記樣式背景屬性.

CSS3 browser support extends to background-image, background-position, background-repeat. This library only implements its own property for the shorthand style background property.

http://plugins.jquery.com/project/multiple-bg

示例用法

包括腳本

所有需要包含的只是 jQuery 庫和此腳本,這些功能才能正常工作.不需要額外的 Javascript 編碼.縮小后的庫只有 8.7kB!

All that needs to be included is the jQuery library and this script for these features to work. No extra Javascript coding is required. The minified library is only 8.7kB!

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.multiple-bgs.js"></script>

編寫 CSS

使用這個 Javascript 庫讀取使用 background 屬性的多個背景.請注意如何支持懸停和活動狀態.

Multiple backgrounds using the background property are read using this Javascript library. Notice how hover and active states are supported.

#ex1 {
    background: url(middle.gif) repeat-x 0 0; /* For unsupported browsers */
    background: url(left.gif) no-repeat 0 0, /* For CSS3 Browsers */
                url(right.gif) no-repeat 100% 0, 
                url(middle.gif) repeat-x 0 0;
}
#ex1:hover {
    background: url(middle-hover.gif) repeat-x 0 0; /* For unsupported browsers */
    background: url(left-hover.gif) no-repeat 0 0, /* For CSS3 Browsers */
                url(right-hover.gif) no-repeat 100% 0, 
                url(middle-hover.gif) repeat-x 0 0;
}
#ex1:active {
    background: url(middle-active.gif) repeat-x 0 0; /* For unsupported browsers */
    background: url(left-active.gif) no-repeat 0 0, /* For CSS3 Browsers */
                url(right-active.gif) no-repeat 100% 0, 
                url(middle-active.gif) repeat-x 0 0;
}

這篇關于多個背景圖像 IE8的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

jQuery/JavaScript Library for avatar creation?(用于創建頭像的 jQuery/JavaScript 庫?)
How to do following mask input problem?(如何做以下掩碼輸入問題?)
Issues Setting Value/Label Using DropKick Javascript(使用 DropKick Javascript 設置值/標簽的問題)
how to unit-test private methods in jquery plugins?(如何對 jquery 插件中的私有方法進行單元測試?)
stellar.js - configuring offsets / aligning elements for a vertical scrolling website?(stellar.js - 為垂直滾動網站配置偏移量/對齊元素?)
jQuery masked input plugin. select all content when textbox receives focus(jQuery 屏蔽輸入插件.當文本框獲得焦點時選擇所有內容)
主站蜘蛛池模板: 91视在线国内在线播放酒店 | 午夜视频在线免费观看 | 成人免费在线播放 | 欧美专区日韩专区 | 91在线视频免费观看 | 精品国产乱码久久久久久1区2区 | 偷拍自拍网站 | 在线高清免费观看视频 | 国产成人精品久久二区二区91 | va在线 | 精品成人av | 羞羞视频在线免费 | 欧美成视频 | 亚洲狠狠爱 | 成人二区| 久久久国产精品视频 | 97日日碰人人模人人澡分享吧 | 精品伊人 | 一级黄色录像毛片 | 国产免费视频在线 | 国产 亚洲 网红 主播 | 国产精品乱码一二三区的特点 | 久久小视频 | 99精品在线观看 | 成人网视频 | 国产一区 | 精品国产乱码久久久久久1区2区 | 欧美色综合一区二区三区 | 日韩在线视频一区二区三区 | 国产伦精品| 午夜视频在线免费观看 | 午夜精品久久久久久不卡欧美一级 | 国产精品呻吟久久av凹凸 | 在线免费看黄 | 国产九九av | 亚洲一区二区久久久 | 成人看片在线观看 | 国产在线激情视频 | 天天插天天操 | 一区二区手机在线 | 亚洲精品成人在线 |