c语言sscanf函数的用法是什么
256
2022-09-26
css_径向渐变 radial-gradient()/css generator样式生成器
css 渐变 radial-gradient()
references
radial-gradient() - CSS: Cascading Style Sheets | MDN (mozilla.org)CSS radial-gradient() function (w3schools.com)resolution - CSS: Cascading Style Sheets | MDN (mozilla.org)radial-gradient · WebPlatform Docs
W3Schools Online Web TutorialsMDN Web Docs (mozilla.org)CSS Gradients - Radial Gradients - CSSPortalWelcome to Web Platform Docs · WebPlatform Docs
css generators样式生成器
The ultimate tools for web development | Web Code ToolsCSS Generator (css-generator.netlify.app)(for all css styles )CSS Gradient Generator - CSS Portal(espacially for gradient)
values
Values “Permalink to Values”)
Both circle and ellipse gradients accept the following keywords for their
If
| Keyword | Description || :------------------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: ||closest-side | The gradient’s ending shape meets the side of the box closest to its center (for circles) or meets both the vertical and horizontal sides closest to the center (for ellipses). ||closest-corner | The gradient’s ending shape is sized so that it exactly meets the closest corner of the box from its center. ||farthest-side | Similar toclosest-side, except the ending shape is sized to meet the side of the box farthest from its center (or vertical and horizontal sides). ||farthest-corner | The default value, the gradient’s ending shape is sized so that it exactly meets the farthest corner of the box from its center. |
position Value
/* 1-value syntax */keyword /* Either the horizontal or vertical position; the other axis defaults to center */value /* The position on the x-axis; the y-axis defaults to 50% *//* 2-value syntax */keyword keyword /* A keyword for each direction (the order is irrelevant) */keyword value /* A keyword for horizontal position, value for vertical position */value keyword /* A value for horizontal position, keyword for vertical position */value value /* A value for each direction (horizontal then vertical) *//* 4-value syntax */keyword value keyword value /* Each value is an offset from the keyword that precedes it */
snytax
radial-gradient ([ [
排版
/* 语法大致分为两部分,第一部分较为灵活(存在较多简写形式) */ /* radial-gradient ( [ (comment:形状/大小/位置;从优先级低的开始看起,划分长句(从`|`互斥符到`[]`以及`||`,`&&`)) [ [
position
Optional value that specifies the center of the gradient. This value can take the same values as the background-position property. If this value is omitted, it defaults to center.
shape
Optional value that specifies the ending shape of the gradient. If this value is omitted, the ending shape is a circle if the size parameter is a single length value, and an ellipse otherwise.
Value | Meaning |
ellipse | Indicates gradient is in the shape of an ellipse. |
circle | Indicates gradient is in the shape of an circle. |
size
Optional value that specifies the size of the gradient’s ending shape. If this value is omitted, it defaults to farthest-corner.
Value | Meaning |
One or two space-delimited length values or two percentages. If one length value is specified, it indicates the radius of the circle. If two values (length or percent) are specified, the first value represents the horizontal radius, and the second the vertical radius. Percentage values are relative to the corresponding dimension of the gradient box. Percentages can only be used to specify the size of an elliptical gradient, not a circular one.Negative values are invalid. | |
closest-side | For circular gradients, this value indicates that the ending-shape is circle sized so that it exactly meets the side of the box closest to its center. For elliptical gradients, the gradient-shape is an ellipse size so that it exactly meets the vertical and horizontal sides of the box closest to its center. |
closest-corner | Sizes the gradient-shape so that it exactly meets the closest corner of the box from its center. For elliptical gradients, the gradient-shape has the same ratio of width to height that it would ifclosest-sidewas specified. |
farthest-side | Similar toclosest-side, except the gradient-shape is sized to meet the side of the box that is farthest from its center (for circular gradients) or the farthest vertical and horizontal sides (for elliptical gradients). |
farthest-corner | Sizes the gradient-shape so that it exactly meets the farthest corner of the box from its center. For elliptical gradients, the gradient-shape has the same ratio of width to height that it would iffarthest-sidewas specified. |
color-stop
At least two color stops are required.Each color stop has one or two components—a color component andan optional position component.The first component defines the color component of a stop point for the gradient.
Each stop point has its own designated color, and the area between each point isfilled with a continuous color transition from one to the other.This value can be any supported color value.
The second component isan optional percentage or decimal valuethat indicates where along the gradient ray (similar to a gradient line in alinear-gradient, but from the center outward) to place the color stop.
“0%” indicates the start ofthe gradient ray, and “100%” indicates the pointwhere the gradient ray intersects the ending shape.For instance, a value of “20%” indicatesthe color stop should be placed at a point 20% of the length of the gradient ray, starting from the beginning of the line.Values can benegative, which indicates that the specified color for that value is at mid-transition to the next color at the center of the gradient, so the visible color at the center will be somewherebetween the specified color and the next color.Values can be greater than 100%, which specifies a locationa correspondingly greater distancefrom the center of the gradient.
examples:
codes:
codes2:
为了使得轮廓更加清晰,我将过渡颜色种类设置为2,渐变区间设置为0设置为
相关资料
CSS Gradients - Radial Gradients - CSSPortal
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~