


2015-09-22CSS:border、background、表格、超链接、overflow、firebug_html/css_WEB-ITnose
1、CSS的border属性
⑴定义和用法
border 简写属性在一个声明设置所有的边框属性。
可以按顺序设置如下属性:
border-width
border-style
border-color
如果不设置其中的某个值,也不会出问题,比如 border:solid #ff0000; 也是允许的。
值 | 描述 |
border-width | 规定边框的宽度。 |
border-style | 规定边框的样式。例如,solid、dashed、dotted、none。 |
border-color | 规定边框的颜色。 |
1 |
|
⑵分别设置border的上、下、左、右
1 |
|
2、CSS的background属性
⑴背景颜色
1 |
|
⑵背景图片
1 |
|
⑶背景图片重复
1 |
|
1 |
|
1 |
|
1 |
|
⑷背景图片位置
1 |
|
⑸拉伸背景图片
1 |
|
⑹背景图片固定
1 |
|
3、表格样式
⑴表格的标题
1 |
|
1 |
|
⑵表格的边框
1 |
|
⑶边框重叠
1 |
|
1 |
|
⑷行的表头、列的表头
1 |
|
示例代码:
1 |
|
4、超链接
⑴去掉超链接的下划线
1 |
|
⑵效果
1 |
|
5、CSS的 overflow 属性
所有主流浏览器都支持 overflow 属性。overflow 属性规定当内容溢出元素框时发生的事情。
值 | 描述 |
visible | 默认值。内容不会被修剪,会呈现在元素框之外。 |
hidden | 内容会被修剪,并且其余内容是不可见的。 |
scroll | 内容会被修剪,但是浏览器会显示滚动条以便查看其余的内容。 |
auto | 如果内容被修剪,则浏览器会显示滚动条以便查看其余的内容。 |
6、一个工具
FireFox浏览器的插件Firebug

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.
