Create an info symbol in SVG

回复样本
Here's an example of how to create an info symbol in SVG: ``` <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="50" r="40" stroke="black" stroke-width="2" fill="transparent" /> <text x="50" y="50" text-anchor="middle" dominant-baseline="central" font-size="30">i</text> </svg> ``` In this example, we create a circle with a radius of 40 and a black stroke with a width of 2. We then add a "transparent" fill to make the circle hollow. Inside the circle, we add a text element with a single "i" character in the center. The `text-anchor` and `dominant-baseline` attributes are used to position the text element in the center of the circle. You can adjust the size and styling of the symbol by changing the values of the attributes, such as the `font-size` and `stroke-width`.
出版日期: 1 年前