Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试用 CSS 画一个圆圈,但它没有渲染。这是我的代码:
<div id="circle" height="65" width="65" position="absolute"></div>
并在 CSS 文件中:
#circle { background:blue; width:65; height:65; border-radius:50%; }
我在这方面犯了错误,还是 CSS 和 Zepto 或 Phonegap 有问题?
你输了px
px
#circle { background:blue; width:65px; height:65px; border-radius:50%; }
测试:
http://jsfiddle.net/Kjy5y/