后四个样式规则设置每个代表站点主要部分的li元素的宽度。
The next four styling rules set the widths on each of the li elements representing the major sections of the sites.
清单6演示如何使用CSS - 3根据XForms输入中的class属性为不同的元素有条件地设置宽度。
Listing 6 shows how CSS-3 can be used to conditionally set the width inside different elements that each used a different class attribute in the XForms input.
通常来说,该元素值设定的宽度比我们需要的宽度要宽很多,所以还需使用级联样式表来设置该元素值的宽度。
Normally, this would render much wider than you need it, so you'll then use Cascading Style Sheets to set the width of its value.
设置按钮的宽度只是稍微复杂一点:复制矩形的宽度并在元素中增加了一个单位,为矩形的边框留下位置。
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.
随便设置这两属性中的一个,元素将会创建它的宽度和高度。
By setting either of the two properties, the element will be created with that width and height.
更重要的一点,无论你怎样设置表格元素的高度和宽度,表格内的所有元素都将在加载表格之前加载,这可能是很多人热衷表格布局的原因吧!
FOR the most part, unless you set the height and width of your table elements, all the text has to be loaded and rendered BEFORE the table sizes itself to the page.
更重要的一点,无论你怎样设置表格元素的高度和宽度,表格内的所有元素都将在加载表格之前加载,这可能是很多人热衷表格布局的原因吧!
FOR the most part, unless you set the height and width of your table elements, all the text has to be loaded and rendered BEFORE the table sizes itself to the page.
应用推荐