摘要:
// contains 包含文本 // $("li:contains(dadada)").css("color","red") // // has 选择器 // $("li:has(.span)").css("color","green") // // 空的 // $("li:empty").css 阅读全文
摘要:
// document.getElementById() id // document.getElementsByClassName() class // document.getElementsByName() name // document.getElementsByTagName() < / 阅读全文
摘要:
轮廓线 outline: none;focus获取焦点 background-position: 0 1px; 将其他页面添加到本页面位置<iframe src="toubu.html" width="100%" height="178px" ></iframe> 阅读全文
摘要:
盒子模型:display: flex; 先写布局 左右分割页面 大于号不要写> 用 > < &li; sub 垂直对齐文本的下标 super 垂直对齐文本的上标 text-decoration: none:消除文本下划线 background-position:定位背景图像 阅读全文
摘要:
/* 转换块元素 */ display: inline-block; /* 精灵图位置 */ background-image: url(../img/ico.png); background-position: 0 -70px; /* 第一张图片距离左边距离 */.content .top li: 阅读全文
摘要:
左右分割 <dl> <dt></dt> <dd></dd> </dl> 表类型少用table 可以用ul li类型的写 少用float 用display: inline-block; ul>(li>img[src=img/pro/$.jpg]+h3+div>span.money{¥15}+span. 阅读全文
摘要:
用background-image: url 把图片添加进去, 再用 background-repeat: no-repeat;删除重复 background-position: x坐标 y坐标; 再在hover里面写 background-position: x坐标 y坐标; 将a标签表示为块级元 阅读全文