Skip to content

Commit 2519e9c

Browse files
committed
修改examples拉伸问题
1 parent 81634d9 commit 2519e9c

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

examples/css/examples.css

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#examples-container {
2-
position: absolute;
32
margin-left: 205px;
43
z-index: 10;
54
background-color: #f9f9f9;
65
}
6+
77
#charts-list {
88
margin: 0px;
9-
padding-left:20px;
9+
padding-left: 20px;
1010
list-style: none;
1111
overflow: inherit;
1212
}
@@ -43,14 +43,11 @@ h3.category-title {
4343
overflow: hidden;
4444
text-overflow: ellipsis;
4545
white-space: nowrap;
46-
padding: 10px 10px 2px 10px;
46+
padding: 10px 10px 2px 0px;
4747
margin: 0;
4848
font-weight: normal;
4949
}
5050

5151
#charts-list .chart .chart-link .chart-area {
5252
width: 100%;
53-
height: 208px;
54-
background-color: #e2e2e2;
55-
margin: 8px;
5653
}

examples/js/example.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ function getThumbLocation() {
9999
//chart宽高自适应
100100
function resizeCharts() {
101101
var charts = $("#charts-list .chart .chart-area");
102+
charts.height(charts[0].offsetWidth * 0.8);
102103
window.onresize = function () {
103104
charts.height(charts[0].offsetWidth * 0.8);
104105
}

web/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<li class="active"><a href="#" data-toggle="dropdown" class="dropdown-toggle">示例<b
1212
class="caret"></b></a>
1313
<ul class="dropdown-menu nav_apis_box_li">
14-
<li>OpenLayers</li>
1514
<li>Leaflet</li>
15+
<li>OpenLayers</li>
1616
<li>WebGL</li>
1717
</ul>
1818
</li>

0 commit comments

Comments
 (0)