您的位置:首页 > Web前端 > HTML

HTML(4)

2014-04-14 10:32 239 查看
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.



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: