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.
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.
相关文章推荐
- VB.NET 美化HTML代码
- rowspan 属性 -- 可以实现HTML表格中一列跨越多行
- 历史在重演:从KHTML到WebKit,再到Blink
- HTML <td> 标签的 rowspan 属性
- html 代码rowspan="2" 代表什么意思
- 将HTML转成XHTML并清除一些无用的标签和属性
- html tel
- flex内嵌html网页
- HTML笔记——HTML 框架(frameset )
- innerHTML、outerHTML、innerText、outerText的区别及兼容性问题
- 学习笔记_web——HTML
- HTML笔记——背景&颜色
- 爬虫技术 -- 进阶学习(十)网易新闻页面信息抓取(htmlagilitypack搭配scrapysharp)
- HTML笔记——图片
- html事件绑定总结以及window.onload和document.body.onload事件
- HTML笔记——表单(form)
- HTML笔记——列表
- 鼠标+键盘+HTML事件
- HTML笔记——表格
- HTML笔记——链接<link>