width
属性指定元素的width
。值可以以相对长度单位(例如em),绝对长度单位(例如px)或其包含的父元素的百分比给出。这是一个将图像宽度更改为220px的示例: img {
宽度:220px;
}
width
属性添加到整个卡并将其设置为绝对值245px。使用fullCard
类选择元素。 fullCard
类选择器将卡的width
属性更改为245像素。
testString: 'assert(code.match(/.fullCard\s*{[\s\S][^}]*\n*^\s*width\s*:\s*245px\s*;/gm), "Your code should change the width
property of the card to 245 pixels by using the fullCard
class selector.");'
```
Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.