摘要: css中:not()选择器用法 :not 伪类选择器可以筛选不符合表达式的元素,:not(selector) 其中的selector为css选择器 ul li:not(:first-child) ul li:not(.text) //不包含class="text"的元素 :not(p) //非段落元 阅读全文
posted @ 2019-08-20 15:34 摘星七月天 阅读(127) 评论(0) 推荐(0) 编辑
摘要: <script language="JavaScript"> //禁止鼠标右键 if (window.Event) document.captureEvents(Event.MOUSEUP); function nocontextmenu() { event.cancelBubble = true 阅读全文
posted @ 2019-05-24 17:50 摘星七月天 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 前期写的小demo,能用到的直接拿来用. 有更好的方法可以下方讨论! <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> #box{ width: 150px; hei 阅读全文
posted @ 2019-05-24 12:17 摘星七月天 阅读(145) 评论(0) 推荐(0) 编辑
摘要: <span style="cursor:auto">浏览器设置的光标</span><br /> <span style="cursor:default">默认鼠标箭头</span> <span style="cursor:pointer">一只手的形状</span> <span style="cur 阅读全文
posted @ 2019-05-24 12:14 摘星七月天 阅读(322) 评论(0) 推荐(0) 编辑