随笔分类 - 样式收集
摘要:background-position 用法详细介绍 语法: background-position : length || length background-position : position || position 取值: length : 百分数 | 由浮点数字和单位标识符组成的长度值
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>菜鸟教程(runoob.com)</title> <style> ul { list-style-type: none; margin: 0; padding: 0; /* ove
阅读全文
摘要::nth-last-child(n) p:nth-last-child(2) 选择所有p元素倒数的第二个子元素 :nth-last-of-type(n) p:nth-last-of-type(2) 选择所有p元素倒数的第二个为p的子元素 p:nth-last-child(2) 表示按照全部元素计算,
阅读全文
摘要:原来是设置自己要居中对齐,不是设置外面容器属性 <!DOCTYPE html> <html> <head> <title> 居中对齐 </title> <style> .center { margin: auto; width: 60%; border: 3px solid #73AD21; pad
阅读全文
摘要:relative 定位 相对定位元素的定位是相对其正常位置。就是原来的位置 下面是正常情况下高度81.91 设置相对定位后高度还是81.91 ,没有变化,但是内容移到上面去了 移动相对定位元素,它原本所占的空间不会改变。 相对定位元素经常被用来作为绝对定位元素的容器块。 absolute 定位 绝对
阅读全文