Skip to content

Commit

Permalink
IE8-页面兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
kener committed Mar 26, 2014
1 parent e5b790d commit 802edbe
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 123 deletions.
170 changes: 73 additions & 97 deletions doc/asset/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -289,105 +289,81 @@ a:focus {
.navbar-static-top .container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
width: 940px;
width: 1170px;
}

.span12 {
width: 940px;
}

.span11 {
width: 860px;
}

.span10 {
width: 780px;
}

.span9 {
width: 700px;
}

.span8 {
width: 620px;
}

.span7 {
width: 540px;
}

.span6 {
width: 460px;
}

.span5 {
width: 380px;
}

.span4 {
width: 300px;
}

.span3 {
width: 220px;
}

.span2 {
width: 140px;
}

.span1 {
width: 60px;
}

.offset12 {
margin-left: 980px;
}

.offset11 {
margin-left: 900px;
}

.offset10 {
margin-left: 820px;
}

.offset9 {
margin-left: 740px;
}

.offset8 {
margin-left: 660px;
}

.offset7 {
margin-left: 580px;
}

.offset6 {
margin-left: 500px;
}

.offset5 {
margin-left: 420px;
}

.offset4 {
margin-left: 340px;
}

.offset3 {
margin-left: 260px;
}

.offset2 {
margin-left: 180px;
}

.offset1 {
margin-left: 100px;
}

width: 1170px;
}
.span11 {
width: 1070px;
}
.span10 {
width: 970px;
}
.span9 {
width: 870px;
}
.span8 {
width: 770px;
}
.span7 {
width: 670px;
}
.span6 {
width: 570px;
}
.span5 {
width: 470px;
}
.span4 {
width: 370px;
}
.span3 {
width: 270px;
}
.span2 {
width: 170px;
}
.span1 {
width: 70px;
}
.offset12 {
margin-left: 1230px;
}
.offset11 {
margin-left: 1130px;
}
.offset10 {
margin-left: 1030px;
}
.offset9 {
margin-left: 930px;
}
.offset8 {
margin-left: 830px;
}
.offset7 {
margin-left: 730px;
}
.offset6 {
margin-left: 630px;
}
.offset5 {
margin-left: 530px;
}
.offset4 {
margin-left: 430px;
}
.offset3 {
margin-left: 330px;
}
.offset2 {
margin-left: 230px;
}
.offset1 {
margin-left: 130px;
}
.row-fluid {
width: 100%;
*zoom: 1;
Expand Down Expand Up @@ -4612,7 +4588,7 @@ input[type="submit"].btn.btn-mini {
.navbar-static-top .container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
width: 940px;
width: 1170px;
}

.navbar-fixed-top {
Expand Down
51 changes: 25 additions & 26 deletions doc/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
</p>
<div>
<h3>折线图<a name="line"> </a></h3>
<section>
<div class="section">
<div class="thumb3">
<ul class="slides">
<li data-thumb="asset/img/example/line1.png">
Expand Down Expand Up @@ -175,11 +175,11 @@ <h3>折线图<a name="line"> </a></h3>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div>
<h3>柱状图<a name="bar"> </a></h3>
<section>
<div class="section">
<div class="thumb4">
<ul class="slides">
<li data-thumb="asset/img/example/bar1.png">
Expand Down Expand Up @@ -228,11 +228,11 @@ <h3>柱状图<a name="bar"> </a></h3>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div>
<h3>散点图<a name="scatter"> </a></h3>
<section>
<div class="section">
<div class="thumb4">
<ul class="slides">
<li data-thumb="asset/img/example/scatter1.png">
Expand All @@ -253,11 +253,11 @@ <h3>散点图<a name="scatter"> </a></h3>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div>
<h3>K线图<a name="k"> </a></h3>
<section>
<div class="section">
<div class="thumb4">
<ul class="slides">
<li data-thumb="asset/img/example/k1.png">
Expand All @@ -270,11 +270,11 @@ <h3>K线图<a name="k"> </a></h3>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div>
<h3>饼图<a name="pie"> </a></h3>
<section>
<div class="section">
<div class="thumb4">
<ul class="slides">
<li data-thumb="asset/img/example/cache.png">
Expand Down Expand Up @@ -307,11 +307,11 @@ <h3>饼图<a name="pie"> </a></h3>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div>
<h3>雷达图<a name="radar"> </a></h3>
<section>
<div class="section">
<div class="thumb4">
<ul class="slides">
<li data-thumb="asset/img/example/cache.png">
Expand All @@ -332,11 +332,11 @@ <h3>雷达图<a name="radar"> </a></h3>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div>
<h3>和弦图<a name="chord"> </a></h3>
<section>
<div class="section">
<div class="thumb3">
<ul class="slides">
<li data-thumb="asset/img/example/cache.png">
Expand All @@ -353,11 +353,11 @@ <h3>和弦图<a name="chord"> </a></h3>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div>
<h3>力导向布局图<a name="force"> </a></h3>
<section>
<div class="section">
<div class="thumb3">
<ul class="slides">
<li data-thumb="asset/img/example/cache.png">
Expand All @@ -374,11 +374,11 @@ <h3>力导向布局图<a name="force"> </a></h3>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div>
<h3>地图<a name="map"> </a></h3>
<section>
<div class="section">
<div class="thumb4">
<ul class="slides">
<li data-thumb="asset/img/example/cache.png">
Expand Down Expand Up @@ -431,11 +431,11 @@ <h3>地图<a name="map"> </a></h3>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div>
<h3>混搭<a name="mix"> </a></h3>
<section>
<div class="section">
<div class="thumb4">
<ul class="slides">
<li data-thumb="asset/img/example/cache.png">
Expand Down Expand Up @@ -468,11 +468,11 @@ <h3>混搭<a name="mix"> </a></h3>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div>
<h3>组件<a name="component"> </a></h3>
<section>
<div class="section">
<div class="thumb3">
<ul class="slides">
<li data-thumb="asset/img/example/cache.png">
Expand Down Expand Up @@ -501,11 +501,11 @@ <h3>组件<a name="component"> </a></h3>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div>
<h3>其他<a name="other"> </a></h3>
<section>
<div class="section">
<div class="thumb4">
<ul class="slides">
<li data-thumb="asset/img/example/cache.png">
Expand Down Expand Up @@ -538,7 +538,7 @@ <h3>其他<a name="other"> </a></h3>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div>
<h3>主题<a name="theme"> </a></h3>
Expand Down Expand Up @@ -587,15 +587,14 @@ <h3>专题<a name="topic"></a></h3>


$(window).load(function(){
var section = $('section');
var section = $('[class=section]');
function loadImage(i) {
setTimeout(function(){
var list = $('div>ul>li>a', section[i]);
var nav = $('ol>li>img', section[i]);
var href;
var src;
if (list.length > 0) {
list[0].firstChild.alt = 'ECharts';
for (var j = 0, k = list.length; j < k; j++) {
list[j].target = '_blank';
href = list[j].href.slice(list[j].href.lastIndexOf('/') + 1, -5);
Expand Down

0 comments on commit 802edbe

Please sign in to comment.