font-family、color 以及 font-size
text-align 属性规定了元素中文本的水平对齐方式
格式化
在一个HTML文件中对文本进行格式化。...:200px;width:400px;vertical-align:center;text-align:center;">
内容
元素的标签
fieldset> 定义了一组相关的表单元素
定义了 fieldset> 元素的标题
定义了下拉选项列表
<optgroup
以上参考链接:Gavin_zhong
3、常见的一些CSS初始化代码
腾讯
body,ol,ul,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,form,fieldset,legend...:none; }
a:hover { text-decoration:underline; }
sup { vertical-align:text-top; }
sub{ vertical-align...默认属性是: vertical-align:baseline;
baseline: 默认。元素放置在父元素的基线上。
sub: 垂直对齐文本的下标。...super: 垂直对齐文本的上标
top: 把元素的顶端与行中最高元素的顶端对齐
text-top: 把元素的顶端与父元素字体的顶端对齐
middle: 把此元素放置在父元素的中部。...bottom: 把元素的顶端与行中最低的元素的顶端对齐。
text-bottom: 把元素的底端与父元素字体的底端对齐。
@charset "UTF-8";
/*css 初始化 */
html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset..., legend, img {
margin: 0;
padding: 0;
}
fieldset, img, input, button { /*fieldset...组合表单中的相关元素*/
border: none;
padding: 0;
margin: 0;
outline-style: none;
}
ul, ol {...;
margin: 0;
}
textarea {
resize: none;
}
/*防止多行文本框拖动*/
img {
border: 0;
vertical-align...: middle;
}
/* 去掉图片低测默认的3像素空白缝隙*/
table {
border-collapse: collapse; /*合并外边线*/
}
body |