设置按钮的宽度只是稍微复杂一点:复制矩形的宽度并在元素中增加了一个单位,为矩形的边框留下位置。
Fixing the button's width is only slightly more complicated: the width is copied as is on the rectangle, but incremented by one unit on the element to leave room for the rectangle's stroke.
要去除这些边框,设置-outline属性为与填充色相同即可;要加宽边框,使用- width属性来指定宽度(用像素表示)。
To remove these borders, set the -outline property to be the same as the fill color; to widen the borders, use the -width property to specify their width in pixels.
注意,第一次在浏览器中加载该页时,上面的控件具有自己的宽度为2个像素的绿色边框,如在页的声明性标记中设置的一样。
Note that when you first load the page in a browser, the upper control has its own green border with a width of 2 pixels, as set in the declarative markup for the page.
注意,第一次在浏览器中加载该页时,上面的控件具有自己的宽度为2个像素的绿色边框,如在页的声明性标记中设置的一样。
Note that when you first load the page in a browser, the upper control has its own green border with a width of 2 pixels, as set in the declarative markup for the page.
应用推荐