06 2019 档案
摘要:在做的过程中,发现了一个很简单却又很多人应该碰到的问题,设置Z-INDEX属性无效。 在CSS中,只能通过代码改变层级,这个属性就是z-index, 要让z-index起作用有个小小前提,就是元素的position属性要是relative,absolute或是fixed。 1.第一种情况(z-ind
阅读全文
摘要:// 通过元素的属性值查找对象 // document.querySelectorAll("[data]").forEach(function(e) { // var t = e.getAttribute("data-fire") // $(e.currentTarget).attr("data")
阅读全文

浙公网安备 33010602011771号