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

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

Can you control how an SVG's stroke-width is drawn?

Currently building a browser-based SVG application. Within this app, various shapes can be styled and positioned by the user, including rectangles. ...
https://stackoverflow.com/ques... 

Resize svg when window is resized in d3.js

... Look for 'responsive SVG' it is pretty simple to make a SVG responsive and you don't have to worry about sizes any more. Here is how I did it: d3.select("div#chartId") .append("div") // Container class to make it responsive. .cl...
https://stackoverflow.com/ques... 

How to make a element expand or contract to its parent container?

The goal is to have the <svg> element expand to the size of its parent container, in this case a <div> , no matter how big or small that container may be. ...
https://stackoverflow.com/ques... 

How to place and center text in an SVG rectangle

... An easy solution to center text horizontally and vertically in SVG: Set the position of the text to the absolute center of the element in which you want to center it: If it's the parent, you could just do x="50%" y ="50%". If it's another element, x would be the x of that element + h...
https://stackoverflow.com/ques... 

Add custom icons to font awesome

...want to use it for most of the icons on my site but there are a few custom svg icons that I'd need in addition to what's offered. ...
https://stackoverflow.com/ques... 

Embedding SVG into ReactJS

Is is possible to embed SVG markup into a ReactJS component? 4 Answers 4 ...
https://stackoverflow.com/ques... 

Isn't it silly that a tiny favicon requires yet another HTTP request? How can I put the favicon into

...l fairly recently, most browsers have not been able to handle favicons in .svg format. That's not the case anymore. See: https://caniuse.com/#feat=link-icon-svg 1) Choose SVG as the Favicon format Right now, in June 2020, these browsers can handle SVG Favicons: Chrome Firefox Edge Opera Chrome for...
https://stackoverflow.com/ques... 

Convert an image to grayscale in HTML/CSS

...s answer, and also Roman Nurik's answer, and relaxing somewhat the the 'no SVG' requirement, you can desaturate images in Firefox using only a single SVG file and some CSS. Your SVG file will look like this: <?xml version="1.0" encoding="UTF-8"?> <svg version="1.1" baseProfile="full"...
https://stackoverflow.com/ques... 

What's the best way to make a d3.js visualisation layout responsive?

Assume I have a histogram script that builds a 960 500 svg graphic. How do I make this responsive so on resize the graphic widths and heights are dynamic? ...
https://stackoverflow.com/ques... 

What is the difference between svg's x and dx attribute?

What is the difference between svg's x and dx attribute (or y and dy)? When would be a proper time to use the axis shift attribute (dx) versus the location attribute (x)? ...