1. 程式人生 > >bootstrap相容IE8程式碼片段

bootstrap相容IE8程式碼片段



<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Bootstrap - 簡潔、直觀、強悍、移動裝置優先的前端開發框架,


讓web開發更迅速、簡單。">
<meta name="keywords" content="HTML, CSS, JS, JavaScript, framework, bootstrap, front-end, 


frontend, web development">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="author" content="王賽 <
[email protected]
>"> <title>        全域性 CSS 樣式 &middot; Bootstrap 中文文件    </title> <!-- Bootstrap core CSS --> <link href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> </head>  <body>             <!-- Button trigger modal --> <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data- target="#myModal">   Launch demo modal </button> <!-- Modal --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria- labelledby="myModalLabel" aria-hidden="true">   <div class="modal-dialog">     <div class="modal-content">       <div class="modal-header">         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span  aria-hidden="true">&times;</span></button>         <h4 class="modal-title" id="myModalLabel">Modal title</h4>       </div>       <div class="modal-body">         ...       </div>       <div class="modal-footer">         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>         <button type="button" class="btn btn-primary">Save changes</button>       </div>     </div>   </div> </div>  <form class="form-horizontal">   <div class="form-group">     <label for="inputEmail3" class="col-xs-2 control-label">Email</label>     <div class="col-xs-10">       <input type="email" class="form-control" id="inputEmail3" placeholder="Email">     </div>   </div>   <div class="form-group">     <label for="inputPassword3" class="col-xs-2 control-label">Password</label>     <div class="col-xs-10">       <input type="password" class="form-control" id="inputPassword3" placeholder="Password">     </div>   </div>   <div class="form-group">     <div class="col-xs-offset-2 col-xs-10">       <div class="checkbox">         <label>           <input type="checkbox"> Remember me         </label>       </div>     </div>   </div>   <div class="form-group">     <div class="col-xs-offset-2 col-xs-10">       <button type="submit" class="btn btn-default">Sign in</button>     </div>   </div> </form> <div class="row">   <div class="col-xs-2">     <input type="text" class="form-control" placeholder=".col-xs-2">   </div>   <div class="col-xs-3">     <input type="text" class="form-control" placeholder=".col-xs-3">   </div>   <div class="col-xs-4">     <input type="text" class="form-control" placeholder=".col-xs-4">   </div> </div> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>   <script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>   </body> </html>

相關推薦

bootstrap相容IE8程式碼片段

<!DOCTYPE html> <html lang="zh-cn">   <head>     <!-- Meta, title, CSS, favicons, etc. -->     <meta charset

bootstrap 相容ie8 瀏覽器

今天晚上在玩弄bootstrap的時候,發現在ie8上不相容(吐槽下,即使是官方的demo,在ie8上,效果也非常差,),原來是不支援媒體查詢的緣故,但在專案開發中,ie8肯定得考慮的,找了好久,終於找到原因了。 官方例子:http://v3.bootcss.com/exa

bootstrap 相容ie8瀏覽器

bootstrap 相容ie8 簡單說明 完整程式碼 Demo下載 簡單說明 最近做專案碰到個問題,就是用bootstrap做後臺框架的時候,發現IE9以下都不能完整的相容。 IE8表現為:介面相容,bootstrap的動作不支援。 IE7更

Android學習-相容Android7.0,8.0版本升級更新(程式碼片段記錄)(Kotlin)

Android7.0需要fileprovider宣告, Android8.0需要新增 申明許可權 <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" /&g

相容IE8和主流瀏覽器的圖片預覽的js程式碼

        現如今的許多圖片預覽功能很多都是基於HTML5做出來的,雖然有著很酷炫的效果,但基本都不相容IE8。博主因為專案需求,苦苦尋找,終於找到了一個,可以在下方連結處下載。 下載連結 效果如圖所示:        它的功能也比較多,但根據我的使用,從左往右數第

Bootstrap】一個相容IE8、谷歌等主流瀏覽器的受眾巨幕式風格頁面

雖然說IE6除了部分要求苛刻的需求以外已經被可以不考慮了,但是WIN7自帶的瀏覽器IE8還是需要支援的。 本文這個方法主要的優點,個人覺得就是準備少,不需要上網尋找大量的圖片做素材,你只要準備好一個bootstrap、jquery與photoshop就可以了,bootstr

bootstrap輪播圖相容IE8,文字背景變透明

<div id="myCarousel" class="carousel slide" data-ride="carousel"> <!-- 輪播(Carousel)指標 --> <ol class="carousel-indic

bootstrap相容ie6 ie7 ie8 ie9 ie10 ie11的解決方法

前兩天遇到要bootstrap相容ie各個版本的問題,但是各種百度,各種部落格,最後算是解決了,但是迷迷糊糊的,現在來總結一下,如有雷同純屬總結。 首先看看程式碼的模樣: <html>

Bootstrap 3(相容IE8瀏覽器)在IE8下未能自適應解決辦法

最近在研究Bootstrap(官方,Github) 這個優秀的前端框架,Bootstrap最開始是Twitter團隊內部的一個前端框架,所謂前端框架就是一個CSS/HTML框架,框架裡面有下拉菜 單、按鈕組、按鈕下拉選單、導航、導航條、麵包屑、分頁、排版、縮圖、警告對

BootStrap有用代碼片段(持續總結)

end 布局 hid lap log 應用場景 als ogg ron > 如題。持續總結自己在使用BootStrap中遇到的問題。並記錄解決方法。希望能幫到須要的小夥伴 1、bootstrap上下布局。頂部固定下部填充 應用場景:

【wtfPython】一組有趣的、微妙的、複雜的Python程式碼片段

原作者:董偉明 (Dongweiming) 原文連結:推薦wtfPython: 一組有趣的、微妙的、複雜的Python程式碼片段 本文有細微改動 wtfPython 1 就是「What the f**k Python?」的意思,這個專案列舉了一些程式碼片段,可能結果和你想到的是

相容IE8的,頁面點選繫結

情況:繫結整個頁面點選事件時,IE8失效,所以做了以下相容 程式碼: 第一種:(else內的方式繫結,只有谷歌等瀏覽器可以,IE8不可以) //判斷是否為IE8(showModalDialog為IE8特有彈窗方法) if(window.showModalDialog){   &

幾個非常實用的JQuery程式碼片段

jQuery是一個相容多瀏覽器的javascript庫,核心理念是write less,do more(寫得更少,做得更多)。jQuery使使用者能更方便地處理HTML(標準通用標記語言下的一個應用)、events、實現動畫效果,並且方便地為網站提供AJAX互動。jQuery還有一個比較大的優勢是,它的文件說

snippetsLab for mac(簡單的程式碼片段管理器)破解版

snippetsLab for mac是Mac平臺上一款簡單的程式碼片段管理器,snippetsLab mac破解版支援超過100種語言的語法高亮顯示、一個程式碼段中新增多個片段、使用全文搜尋即時查詢您的程式碼段等實用的功能,snippetslab破解版還可以幫你收集和整理重要的程式碼段,並且保證你

全選功能的實現(相容ie8,可以部分禁用)

注: 1.引數兩個,第一個引數為全選按鈕的選擇器,第二個引數為除全選按鈕外的其他複選框的父元素的選擇器,如果其父元素為table,選擇器要寫為 "table tbody"。 2.可有部分按鈕禁用(disabled),例如 <!DOCTYPE html> <

頭像上傳前本地預覽功能的實現(相容ie8)

以下程式碼為頭像的上傳前預覽功能的實現,UI可自行發揮。可用form表單提交檔案,也可使用jquery.form.js外掛實現。下面demo中使用的form提交。 <!DOCTYPE html> <html> <head lang="en">

相容ie8的多檔案上傳

在HTML5中,表單元素有一個新的屬性multiple,可實現多選功能。 <input type="file" multiple>這樣就可以實現多檔案上傳,但是此方法不相容ie8等低版本瀏覽器。所以專案中我使用的是百度的WebUpload外掛,此外掛在ie中底層使用flas

magento中有用的程式碼片段

建立訂單,需要有一個包含地址的個人賬戶 $id=1; // get Customer Id $customer = Mage::getModel('customer/customer')->load($id); $transaction = Mage::getModel('cor

JSP的常用程式碼片段

 獲取滑鼠位置的程式碼片段 <SCRIPT LANGUAGE="JavaScript"> var x; var y; if (navigator.appName == 'Netscape'){

webstrom為程式碼片段設定快捷鍵

點選File→setting 在搜尋框中輸入live→live Templates→html/xml,點選右邊綠色的加號,選擇第一個live Templates 在Abbreviation那一行填上自己設定的快捷鍵,在Template text框中複製上你需要設定的程式碼,