【发布时间】:2015-05-29 23:36:13
【问题描述】:
我一直在代码笔http://codepen.io/knitevision1/pen/qfdne上玩这个时钟。
谁能帮我缩短时针的长度?我试过改变高度,但它似乎是从外向内拉手。
有问题的代码是:
<div id="clock-container" style="padding-left:180px;">
<font color="white" size="1"> London</font>
<svg id="clock" viewBox="0 0 100 100">
<circle id="face" cx="50" cy="50" r="45"/>
<g id="hands">
<rect id="hour" x="47.5" y="12.5" width="5" height="40" rx="2.5" ry="2.55" />
<rect id="min" x="48.5" y="12.5" width="3" height="40" rx="2" ry="2"/>
<line id="sec" x1="50" y1="50" x2="50" y2="16" />
</g>
</svg>
</div>
谢谢!
【问题讨论】: