减去溢出按钮的宽度,如果它显示出来。
Subtract the width of the overflow button if it is displayed.
分组的宽度包含按钮间的填充空间和按钮的宽度总和。
The width of the box containing the buttons is the total width of the buttons plus the padding between them.
搜索框和按钮的宽度是190像素,这会设置logo的宽度。
The search box and button are 190 pixels wide, which sets the width for a logo.
设置按钮的宽度只是稍微复杂一点:复制矩形的宽度并在元素中增加了一个单位,为矩形的边框留下位置。
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.
您可以使用calculateButtonWidth 方法设置按钮的X坐标,方法是增加所有早先按钮的宽度。
Using calculateButtonWidth, you can determine the X coordinate of any particular button relative to the applet by adding the widths of all the previous buttons.
因此,实际上您必须调用ActionBarapplet的子类的子类的invoke方法(而不是 Action Bar applet 本身)计算按钮的宽度。
So in reality, you must call the invoke method on a child of a child of the Action Bar applet, rather than the Action Bar applet itself, to calculate the width of the buttons.
当我们缩小浏览器尺寸时,带水印的文本框和搜索按钮会保持同样的尺寸,因为其grid容器列的宽度是固定的。
When we shrink the browser, the watermark textbox and search button stay the same size because their Grid container columns are a fixed width.
首先,我们将创建一个水平,因此只需添加宽度的圈子,在横向领域,并点击复制按钮。
First we will create the horizontal one, so just add the width of the circle in the horizontal field and click on the copy button.
建议你不要定义这个的宽度,因为这个会与填充按钮的文本宽度相同,不管用户选择的浏览器定义的字体大小是多少。
It is recommended that you not define a width on this at all, since it will be as wide as the text that fills the button, no matter what browser-defined font size the user picks.
如何让一个按钮移动下它改变宽度的标签吗?
How do I make a button move as the label next to it changes width?
这个方法常用来创建宽度可变的按钮,他们将会保持著圆角,而中间会随著需要进行缩放。
This technique is often used to create variable-width buttons, which retain the same rounded corners but whose center region grows or shrinks as needed.
在可流动列内部嵌入一个固定宽度容器会增加延展性,如果我们加入改变宽度的按钮,我们只需要改变一个宽度值就成了。
Having fluid columns inside a fixed width container makes the template very flexible. If we add width changer buttons, we only need to change one value.
第一个按钮将显示成宽度为100像素的(px 的意思是像素)。
The first button will be displayed with a width of 100 pixels (px means pixels).
前面两个按钮将一个合适尺寸作为默认宽度,第三个按钮将会比较大因为它有一个较长的标签。
The first two buttons will be sized at a suitable default width and the third button will be larger because it has a longer label.
如图6所示,包装袋的宽度可以通过电动马达,按下控制按钮可以调整夹子的宽度,容易操作,并且节省时间来调整。
The width of the bags could be adjusted by electrical motor, press the control-button could adjust the width of clips, easily operate, and save time.
如图6所示,包装袋的宽度可以通过电动马达,按下控制按钮可以调整夹子的宽度,容易操作,并且节省时间来调整。
The width of the bags could be adjusted by electrical motor, press the control-button could adjust the width of clips, easily operate, and save time.
应用推荐