【杂记】其余

mac2024-05-13  28

.find(".Level1:not(:hidden)") 查找Level1中没有隐藏的内容区块如果不要.unbind()则会点击后弹出马上收起。.bind('click',function(){$('ul').toggle();})editplus编辑器中的中文字给横过来了:字体前面加上了“@”Subline编辑器中喜欢的字体:monaco空两格是text-indent:2em;中文和中文符号的占位符为12px电脑桌面突然翻转了90度,显示设置就可以调整获取ul li的序列号,一定要将li放在最外面,否则无效,正确的写法是<li><a></a></li>当js需要用到有两个背景时,一定要区分background和background-image!!!input点击去掉默认边框:outline:medium;outline:none;表单input点击时获取焦点隐藏value值:不要value直接添加placeholder="用户名"即可如果有多个div,则在div后面带上class名称,好区分要想里面的内容撑起盒子,必须加display:iinline-block;外加清除浮动clear:both <div style="width:100%;height:2px;overflow:hidden;clear:both"></div> 清除浮动,并且如果加了position:absolute,页面就不会计算高度的,因为浮动了当遇到js书写不通时,换个思考方式,或许是css样式写的不好!!!!重新书写css样式再来引用拨打电话 <a href="tel:18688888888">拨号</a><a href="sms:18688888888">发短信</a>当图层在下面是z-index没用时,添加一个position:relative;设置高度后并且设置了overflow滚动无效后,需要添加一个position:relative;并且将之间前overflow-x:hidden;改为overflow-x:auto;如果input按钮radio每个都可以checked,那么就需要在input中添加name属性,而js用name来获取如果js效果是弹出来又收回去的,就加return false就可以了当图片路径出现问题时,用onerror()方法 <img src="/static/images/head.png" onerror="/static/images/erro.png"/>在火狐浏览器标签下的字体大小为1px,所以要单独给i定义字体大小如果页面内大多数都是正常的,只是个别的页面有问题,可能是有引入样式的冲突根据视网膜屏的分辨率导致图片不高清,就尽量使用大图原图input 的radio属性只点击一个,加上name就可以了confirm() if(confirm(“are you sure”)){ alert(“我点的是确定”); }else{ alert(“我点的是取消”); } prompt() var ans = prompt('are you sure',' '); if(ans){ alert('you said' + ans); }else{ alert('no man'); } 视频缩略图比例1.6-1.8 body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset, legend,input,button,textarea,blockquote,th,td,p{margin:0;padding:0} input,button,select,textarea{outline:none} li{list-style:none} img{border:none} textarea{resize:none} body{color:#666;background:#fff;word-break:break-all;word-wrap:break-word;text-align:center} body,input,textarea{font-size:12px;font-family:\5b8b\4f53,Verdana,Arial} a{color:#6a6a6a;text-decoration:none;outline:none} a:hover{color:#00848e;} .wrap{width:1000px;margin:0 auto;text-align:left;position:relative} .clearfix{overflow:auto;_height:1%} .clear{display:block;font-size:0;height:0;overflow:hidden; clear:both;} .clearall{ clear:both;} jQuery 给body添加背景颜色 $(document.body).css('background','red') 创建div中的p标签 $('<div><p>Hello</p></div>').appendTo('body'); 创建一个input同时设置属性 $('nput').attr('type','checkbox')
最新回复(0)