摘要:
$(document).on("mousewheel DOMMouseScroll", function (e) { var delta = (e.originalEvent.wheelDelta && (e.originalEvent.wheelDelta > 0 ? 1 : -1)) || // 阅读全文
摘要:
复制过去就行了,不要问我为什么,就两个字爽快input:focus {outline: none; } input:focus::-webkit-input-placeholder {text-indent: 100%; opacity: 0; -webkit-transition: .4s; tr 阅读全文
摘要:
a标签增加一个名字触发效果: $(".transition").click(function(){ if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == 阅读全文
摘要:
有时候我们会纠结PC页面在手机页面上无法正常显示,超出屏幕,有些内容看不到,现在又了下面的代码,可以做到自适应手机端的屏幕宽度: 在html的<head>中增加一个meta标签: <meta name=”viewport” content=”width=device-width, initial-s 阅读全文
摘要:
css样式:*{ margin: 0; padding: 0; text-decoration: none; list-style: none;}html,body{ width: 100%; height: 100%;}img{ width: 100%; height: 100%; display 阅读全文
摘要:
<!doctype html><html><head><meta charset="utf-8"><title>双飞翼</title><style>.top{ position:fixed; height:100px; background-color:#F09; left:10px; right: 阅读全文