- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在应用程序中使用 SVG Salamander,我已经生成了 SVG,但是当它渲染时,“线性渐变”没有显示,元素的内容只是纯黑色。
如果我获取生成的 SVG 并在 Firefox 中打开它,一切都会正确并正确呈现。
SVG:
<?xml version="1.0" encoding="UTF-8"?><svg id="root" style="background-color:#000000" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="lamp1rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp1rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp1rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp1cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp1capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp1capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp1spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp1specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp1specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp2rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp2rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp2rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp2cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp2capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp2capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp2spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp2specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp2specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp3rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp3rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp3rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp3cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp3capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp3capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp3spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp3specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp3specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp4rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp4rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp4rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp4cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp4capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp4capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp4spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp4specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp4specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp5rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp5rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp5rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp5cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp5capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp5capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp5spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp5specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp5specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp6rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp6rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp6rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp6cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp6capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp6capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp6spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp6specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp6specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp7rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp7rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp7rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp7cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp7capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp7capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp7spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp7specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp7specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp8rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp8rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp8rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp8cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp8capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp8capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp8spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp8specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp8specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp9rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp9rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp9rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp9cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp9capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp9capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp9spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp9specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp9specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp10rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp10rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp10rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp10cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp10capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp10capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp10spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp10specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp10specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp11rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp11rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp11rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp11cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp11capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp11capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp11spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp11specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp11specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp12rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp12rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp12rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp12cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp12capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp12capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp12spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp12specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp12specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp13rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp13rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp13rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp13cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp13capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp13capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp13spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp13specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp13specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp14rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp14rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp14rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp14cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp14capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp14capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp14spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp14specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp14specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp15rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp15rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp15rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp15cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp15capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp15capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp15spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp15specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp15specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp16rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp16rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp16rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp16cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp16capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp16capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp16spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp16specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp16specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp17rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp17rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp17rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp17cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp17capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp17capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp17spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp17specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp17specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp18rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp18rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp18rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp18cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp18capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp18capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp18spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp18specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp18specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp19rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp19rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp19rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp19cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp19capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp19capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp19spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp19specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp19specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient><linearGradient id="lamp20rim" y1="0" y2="0" x2="1" x1="0"><stop id="lamp20rimstp0" stop-color="#bfbfbf" offset="0"/><stop id="lamp20rimstp1" stop-color="#404040" offset="1"/></linearGradient><linearGradient id="lamp20cap" y1="0" y2="1" x2="1" spreadMethod="pad" x1="0"><stop id="lamp20capstp0" stop-color="#dd0000" offset="0" stop-opacity="0.992188"/><stop id="lamp20capstp1" stop-color="#820101" offset="1" stop-opacity="0.988281"/></linearGradient><linearGradient id="lamp20spec" y1="0" y2="1" x2="1" spreadMethod="d" x1="0"><stop id="lamp20specstp0" stop-color="#ffffff" offset="0" stop-opacity="0.996094"/><stop id="lamp20specstp1" stop-color="#d30606" offset="0.703125" stop-opacity="0.984375"/></linearGradient></defs><g id="lamp1" transform="translate(1204.0,0.0) scale(0.25)"><title id="lamp1title">Lamp 1</title><circle id="lamp1shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp1outline" r="180" stroke-linecap="round" fill="url(#lamp1rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp1lense" r="170" stroke-linecap="round" fill="url(#lamp1cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp1highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp1spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp1label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 1</text></g><g id="lamp2" transform="translate(1302.0,0.0) scale(0.25)"><title id="lamp2title">Lamp 2</title><circle id="lamp2shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp2outline" r="180" stroke-linecap="round" fill="url(#lamp2rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp2lense" r="170" stroke-linecap="round" fill="url(#lamp2cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp2highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp2spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp2label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 2</text></g><g id="lamp3" transform="translate(1204.0,98.0) scale(0.25)"><title id="lamp3title">Lamp 3</title><circle id="lamp3shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp3outline" r="180" stroke-linecap="round" fill="url(#lamp3rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp3lense" r="170" stroke-linecap="round" fill="url(#lamp3cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp3highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp3spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp3label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 3</text></g><g id="lamp4" transform="translate(1302.0,98.0) scale(0.25)"><title id="lamp4title">Lamp 4</title><circle id="lamp4shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp4outline" r="180" stroke-linecap="round" fill="url(#lamp4rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp4lense" r="170" stroke-linecap="round" fill="url(#lamp4cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp4highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp4spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp4label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 4</text></g><g id="lamp5" transform="translate(1204.0,196.0) scale(0.25)"><title id="lamp5title">Lamp 5</title><circle id="lamp5shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp5outline" r="180" stroke-linecap="round" fill="url(#lamp5rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp5lense" r="170" stroke-linecap="round" fill="url(#lamp5cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp5highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp5spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp5label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 5</text></g><g id="lamp6" transform="translate(1302.0,196.0) scale(0.25)"><title id="lamp6title">Lamp 6</title><circle id="lamp6shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp6outline" r="180" stroke-linecap="round" fill="url(#lamp6rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp6lense" r="170" stroke-linecap="round" fill="url(#lamp6cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp6highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp6spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp6label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 6</text></g><g id="lamp7" transform="translate(1204.0,294.0) scale(0.25)"><title id="lamp7title">Lamp 7</title><circle id="lamp7shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp7outline" r="180" stroke-linecap="round" fill="url(#lamp7rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp7lense" r="170" stroke-linecap="round" fill="url(#lamp7cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp7highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp7spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp7label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 7</text></g><g id="lamp8" transform="translate(1302.0,294.0) scale(0.25)"><title id="lamp8title">Lamp 8</title><circle id="lamp8shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp8outline" r="180" stroke-linecap="round" fill="url(#lamp8rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp8lense" r="170" stroke-linecap="round" fill="url(#lamp8cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp8highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp8spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp8label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 8</text></g><g id="lamp9" transform="translate(1204.0,392.0) scale(0.25)"><title id="lamp9title">Lamp 9</title><circle id="lamp9shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp9outline" r="180" stroke-linecap="round" fill="url(#lamp9rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp9lense" r="170" stroke-linecap="round" fill="url(#lamp9cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp9highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp9spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp9label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 9</text></g><g id="lamp10" transform="translate(1302.0,392.0) scale(0.25)"><title id="lamp10title">Lamp 10</title><circle id="lamp10shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp10outline" r="180" stroke-linecap="round" fill="url(#lamp10rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp10lense" r="170" stroke-linecap="round" fill="url(#lamp10cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp10highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp10spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp10label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 10</text></g><g id="lamp11" transform="translate(1204.0,490.0) scale(0.25)"><title id="lamp11title">Lamp 11</title><circle id="lamp11shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp11outline" r="180" stroke-linecap="round" fill="url(#lamp11rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp11lense" r="170" stroke-linecap="round" fill="url(#lamp11cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp11highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp11spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp11label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 11</text></g><g id="lamp12" transform="translate(1302.0,490.0) scale(0.25)"><title id="lamp12title">Lamp 12</title><circle id="lamp12shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp12outline" r="180" stroke-linecap="round" fill="url(#lamp12rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp12lense" r="170" stroke-linecap="round" fill="url(#lamp12cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp12highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp12spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp12label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 12</text></g><g id="lamp13" transform="translate(1204.0,686.0) scale(0.25)"><title id="lamp13title">Lamp 13</title><circle id="lamp13shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp13outline" r="180" stroke-linecap="round" fill="url(#lamp13rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp13lense" r="170" stroke-linecap="round" fill="url(#lamp13cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp13highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp13spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp13label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 13</text></g><g id="lamp14" transform="translate(1302.0,686.0) scale(0.25)"><title id="lamp14title">Lamp 14</title><circle id="lamp14shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp14outline" r="180" stroke-linecap="round" fill="url(#lamp14rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp14lense" r="170" stroke-linecap="round" fill="url(#lamp14cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp14highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp14spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp14label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 14</text></g><g id="lamp15" transform="translate(196.0,952.0) scale(0.25)"><title id="lamp15title">Lamp 15</title><circle id="lamp15shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp15outline" r="180" stroke-linecap="round" fill="url(#lamp15rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp15lense" r="170" stroke-linecap="round" fill="url(#lamp15cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp15highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp15spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp15label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 15</text></g><g id="lamp16" transform="translate(294.0,952.0) scale(0.25)"><title id="lamp16title">Lamp 16</title><circle id="lamp16shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp16outline" r="180" stroke-linecap="round" fill="url(#lamp16rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp16lense" r="170" stroke-linecap="round" fill="url(#lamp16cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp16highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp16spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp16label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 16</text></g><g id="lamp17" transform="translate(392.0,952.0) scale(0.25)"><title id="lamp17title">Lamp 17</title><circle id="lamp17shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp17outline" r="180" stroke-linecap="round" fill="url(#lamp17rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp17lense" r="170" stroke-linecap="round" fill="url(#lamp17cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp17highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp17spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp17label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 17</text></g><g id="lamp18" transform="translate(490.0,952.0) scale(0.25)"><title id="lamp18title">Lamp 18</title><circle id="lamp18shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp18outline" r="180" stroke-linecap="round" fill="url(#lamp18rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp18lense" r="170" stroke-linecap="round" fill="url(#lamp18cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp18highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp18spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp18label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 18</text></g><g id="lamp19" transform="translate(588.0,952.0) scale(0.25)"><title id="lamp19title">Lamp 19</title><circle id="lamp19shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp19outline" r="180" stroke-linecap="round" fill="url(#lamp19rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp19lense" r="170" stroke-linecap="round" fill="url(#lamp19cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp19highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp19spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp19label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 19</text></g><g id="lamp20" transform="translate(686.0,952.0) scale(0.25)"><title id="lamp20title">Lamp 20</title><circle id="lamp20shroud" r="196" stroke-linecap="round" fill="#212121" cy="196" cx="196" stroke-width="1"/><circle id="lamp20outline" r="180" stroke-linecap="round" fill="url(#lamp20rim)" fill-opacity="0.64" cy="196" cx="196" stroke-width="1"/><circle id="lamp20lense" r="170" stroke-linecap="round" fill="url(#lamp20cap)" cy="196" cx="196" stroke-width="1"/><ellipse id="lamp20highlight" transform="rotate(-40 260 150)" stroke-linecap="round" fill="url(#lamp20spec)" cy="40" cx="180" rx="85" stroke-width="1" ry="60"/><text id="lamp20label" font-size="44pt" text-anchor="middle" font-family="Arial Narrow" y="215" x="196">Lamp 20</text></g></svg>
在浏览器中查看时工作正常:
https://jsfiddle.net/SimonPlatten/kcnz1sn5/1/
但当 SVG Salamander 在 Java 应用程序中渲染时则不然。
最佳答案
已解决:
SVG Salamander 需要将“宽度”和“高度”属性添加到“svg”标签中,一旦添加了这些属性,就会执行渲染,如果没有这些属性,它会显示为我所经历的,当这些时不需要这些属性由网络浏览器呈现。
关于Java SVG Salamander 线性渐变未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35701822/
我正在编写一个具有以下签名的 Java 方法。 void Logger(Method method, Object[] args); 如果一个方法(例如 ABC() )调用此方法 Logger,它应该
我是 Java 新手。 我的问题是我的 Java 程序找不到我试图用作的图像文件一个 JButton。 (目前这段代码什么也没做,因为我只是得到了想要的外观第一的)。这是我的主课 代码: packag
好的,今天我在接受采访,我已经编写 Java 代码多年了。采访中说“Java 垃圾收集是一个棘手的问题,我有几个 friend 一直在努力弄清楚。你在这方面做得怎么样?”。她是想骗我吗?还是我的一生都
我的 friend 给了我一个谜语让我解开。它是这样的: There are 100 people. Each one of them, in his turn, does the following
如果我将使用 Java 5 代码的应用程序编译成字节码,生成的 .class 文件是否能够在 Java 1.4 下运行? 如果后者可以工作并且我正在尝试在我的 Java 1.4 应用程序中使用 Jav
有关于why Java doesn't support unsigned types的问题以及一些关于处理无符号类型的问题。我做了一些搜索,似乎 Scala 也不支持无符号数据类型。限制是Java和S
我只是想知道在一个 java 版本中生成的字节码是否可以在其他 java 版本上运行 最佳答案 通常,字节码无需修改即可在 较新 版本的 Java 上运行。它不会在旧版本上运行,除非您使用特殊参数 (
我有一个关于在命令提示符下执行 java 程序的基本问题。 在某些机器上我们需要指定 -cp 。 (类路径)同时执行java程序 (test为java文件名与.class文件存在于同一目录下) jav
我已经阅读 StackOverflow 有一段时间了,现在我才鼓起勇气提出问题。我今年 20 岁,目前在我的家乡(罗马尼亚克卢日-纳波卡)就读 IT 大学。足以介绍:D。 基本上,我有一家提供簿记应用
我有 public JSONObject parseXML(String xml) { JSONObject jsonObject = XML.toJSONObject(xml); r
我已经在 Java 中实现了带有动态类型的简单解释语言。不幸的是我遇到了以下问题。测试时如下代码: def main() { def ks = Map[[1, 2]].keySet()
一直提示输入 1 到 10 的数字 - 结果应将 st、rd、th 和 nd 添加到数字中。编写一个程序,提示用户输入 1 到 10 之间的任意整数,然后以序数形式显示该整数并附加后缀。 public
我有这个 DownloadFile.java 并按预期下载该文件: import java.io.*; import java.net.URL; public class DownloadFile {
我想在 GUI 上添加延迟。我放置了 2 个 for 循环,然后重新绘制了一个标签,但这 2 个 for 循环一个接一个地执行,并且标签被重新绘制到最后一个。 我能做什么? for(int i=0;
我正在对对象 Student 的列表项进行一些测试,但是我更喜欢在 java 类对象中创建硬编码列表,然后从那里提取数据,而不是连接到数据库并在结果集中选择记录。然而,自从我这样做以来已经很长时间了,
我知道对象创建分为三个部分: 声明 实例化 初始化 classA{} classB extends classA{} classA obj = new classB(1,1); 实例化 它必须使用
我有兴趣使用 GPRS 构建车辆跟踪系统。但是,我有一些问题要问以前做过此操作的人: GPRS 是最好的技术吗?人们意识到任何问题吗? 我计划使用 Java/Java EE - 有更好的技术吗? 如果
我可以通过递归方法反转数组,例如:数组={1,2,3,4,5} 数组结果={5,4,3,2,1}但我的结果是相同的数组,我不知道为什么,请帮助我。 public class Recursion { p
有这样的标准方式吗? 包括 Java源代码-测试代码- Ant 或 Maven联合单元持续集成(可能是巡航控制)ClearCase 版本控制工具部署到应用服务器 最后我希望有一个自动构建和集成环境。
我什至不知道这是否可能,我非常怀疑它是否可能,但如果可以,您能告诉我怎么做吗?我只是想知道如何从打印机打印一些文本。 有什么想法吗? 最佳答案 这里有更简单的事情。 import javax.swin
我是一名优秀的程序员,十分优秀!