HTML(4)

来源:互联网 发布:qq欢乐斗地主mac版 编辑:程序博客网 时间:2024/05/16 11:49

CSS treats every single element as if it were represented by a box.

Every box is made up of a content area along with optional padding, border, and margins

All elements are treated as boxes:paragraphs, headings, block quotes,lists, list items, and so on. Even inline elements like <em> and links are treated by CSS as boxes.

Elements can have an optional border around them.The margin gives you a way to add space between your element and other elements on the same page.

Add the class attribute with a value of “guarantee”.Remember, a class will allow you to style this paragraph independently of the other paragraphs.

Adding a background image.the background-image property has a very specific purpose, which is to set the background image of an element. It isn’t for placing images in a page—for that, you definitely want to use the<img> element.

 

0 0
原创粉丝点击