可以在SVG上设置的CSS属性。并不是所有的元素都可以使用这些属性

1、图形的css属性

CSS属性 描述
fill 设置图形的填充颜色
fill-opacity 设置图形填充颜色的透明度
fill-rule 设置图形的填充规则
marker 设置这个图形上沿直线(边)使用的marker
marker-start 设置这个图形上沿直线(边)使用的开始marker
marker-mid 设置这个图形上沿直线(边)使用的中间marker
marker-end 设置这个图形上沿直线(边)使用的结束marker
stroke 设置图形的描边颜色
stroke-dasharray 设置使用虚线来对图形进行描边
stroke-dashoffset 设置图形描边虚线的偏移值
stroke-linecap 设置描边线条线头的类型。可选择有roundbutt 和 square
stroke-miterlimit 设置描边的斜接限制
stroke-opacity 设置米哦啊吧的透明度
stroke-width 设置描边的宽度
text-rendering 设置描边的text-rendering属性

2、文本的css属性

CSS属性 描述
alignment-baseline 设置文本在xy坐标系中的对齐方式
baseline-shift 设置文本的基线偏移
dominant-baseline 设置文本的主导基线
glyph-orientation-horizontal 设置水平字形取向
glyph-orientation-vertical 设置垂直字形取向
kerning 设置文本的字距调整

 

posted on 2015-09-10 12:01  苏荷酒吧  阅读(226)  评论(0)    收藏  举报