大约有 10,924 项符合查询结果(耗时:0.0353秒) [XML]

https://stackoverflow.com/ques... 

SVG get text element width

I'm working on some ECMAScript/JavaScript for an SVG file and need to get the width and height of a text element so I can resize a rectangle that surrounds it. In HTML I would be able to use the offsetWidth and offsetHeight attributes on the element but it appears that those properties are...
https://stackoverflow.com/ques... 

Font scaling based on width of container

... Solution with SVG: .resizeme { resize: both; margin: 0; padding: 0; height: 75px; width: 500px; background-color: lightblue; overflow: hidden; } <div class="resizeme"> <svg width="100%" hei...
https://stackoverflow.com/ques... 

D3.js: what is 'g' in .append(“g”) D3.js code?

... It appends a 'g' element to the SVG. g element is used to group SVG shapes together, so no it's not d3 specific. share | improve this answer | ...
https://stackoverflow.com/ques... 

Proper MIME type for OTF fonts

... Works for me in Chrome 22 and Firefox 15 (Mac), on both SVG and WOFF inlined fonts. – Zeke Oct 10 '12 at 6:59 ...
https://stackoverflow.com/ques... 

Text border using css (border around text)

...nd so on... Not really confortable to manage. The right tool exists, it's SVG <text> The browsers' support problem worth nothing in this case, 'cause the usage of text-shadow has its own support problem too, filter: progid:DXImageTransform can be used or IE < 10 but often doesn't work as ...
https://stackoverflow.com/ques... 

Inner text shadow with CSS

...s currently no way to make an inverted-text mask in CSS, you could turn to SVG or Canvas and make a text replacement image with the three layers to get your effect. Since SVG is a subset of XML, SVG text would still be select-able and searchable, and the effect can be produced with less code than C...
https://stackoverflow.com/ques... 

What exactly does the enable-background attribute do?

...t get used very much. (It's also there as boilerplate in every Illustrator SVG export - for no good reason.) (It's also been deprecated by all the major browsers since 2014) share | improve this ans...
https://stackoverflow.com/ques... 

How to add color to Github's README.md file

... As an alternative to rendering a raster image, you can embed a SVG file: <a><img src="http://dump.thecybershadow.net/6c736bfd11ded8cdc5e2bda009a6694a/colortext.svg"/></a> You can then add color text to the SVG file as usual: <?xml version="1.0" encoding="utf-8"?&...
https://stackoverflow.com/ques... 

How to display loading message when an iFrame is loading?

...holder you are trying to achieve: a crazy approach is to inject text as an svg-background. It allows for some flexbility, and from what I've read the browser support should be fairly decent (haven't tested it though): Chrome >= 27 FireFox >= 30 Internet Explorer >= 9 Safari >= 5.1 ht...
https://stackoverflow.com/ques... 

Saving images in Python at a very high quality

... Good point - DPI is not needed for vector formats like svg, pdf, eps – spencerlyon2 Mar 12 '19 at 13:32 ...