我有一个矢量SVG图像,这比我的面板宽度大,我会通过CSS - 或更智能的东西 - 隐藏面板内未包含的所有内容。这是plunk
<div class="panel panel-default">
<div class="panel-heading">
Timeline
</div>
<div ui-view="timeline" class="ng-scope">
<div class="panel-body ng-scope">
<div id="target1">
<div class="chronoline-wrapper chronoline-draggable">
<div class="chronoline-canvas" style="height: 180px; position: absolute; left: 0px; top: 50px;">
<! -- SVG related tags -->
</div>
</div>
</div>
</div>
</div>
</div>