- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 CSS position 属性(第五次课)
#header,#footer{ width: 100%; height: 50px; line-height: 50px;/* 行间距 / text-align: center;/ 文本对齐 / font-size: 20px;/ 字体大小 / position: fixed; background-color: #999; / 字间距 文字间的间距 / letter-spacing: 10px; / 透明度 1不透明 0完全透明 */ opacity: 0.8; } absolute 生成绝对定位
2020-07-03 12:49:45 53
原创 line-height
line-height:20px; 行间距 20像素. line-height:200%; 语法: line-height : normal | length 参数: normal : 默认行高 length : 百分比数字 | 由浮点数字和单位标识符组成的长度值,允许为负值。其百分比取值是基于字体的高度尺寸。请参阅长度单位 说明: 检索或设置对象的行高。即字体最底端与字体内部顶端之间的距离。 如行内包含多个对象,则应用最大行高。此时行高不可为负值。 对应的脚本特性为lineHeight。 示例: div
2020-07-03 12:42:15 97
原创 css选择器排行
1.id选择器(#myid) 2.类选择器(.myclassname) 3.标签选择器(div,h1,p) 4.相邻选择器(h1+p) 5.子选择器(ul > li) 6.后代选择器(li a) 7.通配符选择器(*) 8.属性选择器(a[rel=“external”]) 9.伪类选择器(a:hover, li:nth-child ...
2020-07-03 12:30:54 110
原创 css背景图片(第五次课)
body{ /* 整个网页的背景图片 / background: url(1.jpg) no-repeat; background-size: cover;/ 规定背景图像的尺寸 / font-family: 微软雅黑;/ 为段落设置字体: */ width: 1824px; height: 1000px; } repeat 默认。背景图像将在垂直方向和水平方向重复。 repeat-x 背景图像将在水平方向重复。 repeat-y 背景图像将在垂直方向重复。 no-repeat 背景图像将仅显示一次
2020-07-03 12:26:03 87
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人