久久久久久久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 屏蔽輸入插件.當文本框獲得焦點時選擇所有內容)
主站蜘蛛池模板: 五月色丁香 | 免费的黄色大片 | 成人精品在线 | 午夜高清 | 国产精品666| 久久久久久久综合 | 欧美成人免费在线视频 | 91tv国产成人福利 | 岛国av噜噜噜久久久狠狠av | 欧美久久一区二区 | 亚洲黄色大片 | 中文字幕网址在线 | 91爱爱网| 国产精品久久久久久久久久久久午夜片 | 免费在线观看黄色片 | 亚洲欧美日韩国产精品 | 日韩av一区二区三区四区 | 国产深夜福利 | 中文字幕在线免费看 | 中文字幕一区二区三区四区视频 | 亚洲成人黄色 | 日本欧美精品 | 91在线看片 | 黄色成人在线 | 中文字幕第一页在线 | 国产精品欧美精品 | 亚欧av在线 | 国产精品美女在线观看 | 天海翼一区 | 午夜性福利 | 日韩高清一区二区 | 日批视频免费在线观看 | 中文字幕视频在线 | 午夜免费时刻 | 日韩av网站在线观看 | 欧美一区二区视频在线观看 | 免费av片 | 久久精品国产精品 | 成人手机在线观看 | 日韩精品一区二区在线 | 亚洲福利在线观看 |