我想用HTML + CSS繪製具有固定基數和長度(例如30px半徑和70%長度)的弧扇區。內聯樣式的HTML弧扇區
我發現迄今爲止大多數解決方案是將兩張圖片與position:absoulte
組合在一起。不幸的是,我的html代碼將作爲電子郵件模板發送出去,我發現Gmail不支持絕對位置。這也是我想使用內聯樣式而不是頭部CSS的原因。
相關的問題在這裏: HTML5/CSS3 Circle with Partial Border
類似的輸出我所期待的。 http://dabblet.com/gist/3949571
對此有何幫助?
謝謝您的回答。但是,我不清楚如何設置值來修改弧長。您是否介意以一個例子進一步解釋一下? (例如,如何設置具有弧度70) – Pang