摘要: 1 /*input 聚焦事件*/ 2 function test(a){ 3 $(a).each(function(){ 4 var word=$(this).val(); 5 $(this).attr('data_val',word); 6 }); 7 ... 阅读全文
posted @ 2017-01-19 13:35 ghfjj 阅读(3599) 评论(0) 推荐(0)
摘要: 来源: https://zhidao.baidu.com/question/433149858632567164.html 阅读全文
posted @ 2017-01-19 13:34 ghfjj 阅读(260) 评论(0) 推荐(0)
摘要: 层次选择器: $('div p');//选取div下的所有的p元素 $('div>p').css('border','1px solid red');//只选取div下的直接子元素 //相邻的元素 $('div ~ p).css('border','1px solid red');与$('div') 阅读全文
posted @ 2017-01-19 13:34 ghfjj 阅读(227) 评论(0) 推荐(0)
摘要: http://www.daqianduan.com/3737.html 前端的哥们想必都接触过css中一个神奇的玩意,可以轻松选取你想要的标签并给与修改添加样式,是不是很给力,它就是“:nth-child”。 下面我将用几个典型的实例来给大家讲解:nth-child的实际用途: Tips:还用低版本 阅读全文
posted @ 2017-01-19 13:32 ghfjj 阅读(2048) 评论(0) 推荐(0)
摘要: html: <div class="word"> <p class="en"><span>ASSET MANAGEMENT</span></p> <p class="ch">资产管理</p> </div> css: .en span{ display:inline-block; font-size: 阅读全文
posted @ 2017-01-19 13:32 ghfjj 阅读(261) 评论(0) 推荐(0)
摘要: white-space:nowrap; 溢出省略;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; 英文:word-break:break-all; 1. word-break:break-all;只对英文起作用,以字母作为换行依据 2. word-wrap:break-word; 只对英文起作用,以单词作为换行依... 阅读全文
posted @ 2017-01-19 13:31 ghfjj 阅读(156) 评论(0) 推荐(0)
摘要: 邮件客户端检测: 阅读全文
posted @ 2017-01-19 13:30 ghfjj 阅读(303) 评论(0) 推荐(0)
摘要: <a href="" title="想显示的详细信息"></a> <span title="想显示的详细信息"></span> 阅读全文
posted @ 2017-01-19 13:30 ghfjj 阅读(1874) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/comikey/article/details/8954479 解决思路是把input 放在文字的上边,弄成透明的,这样在点文字时,实际是点击了input,这样就实现了文件的上传。是不是很简单呀。 具体代码: <style> #uploadImg{ font 阅读全文
posted @ 2017-01-19 13:29 ghfjj 阅读(54000) 评论(0) 推荐(1)
摘要: JavaScript代码: function check() { var bb = document.getElementById("txt_id").value;//txt_id为文本框的ID alert(ismobile(bb));//ismobile 代表以下任何一个函数名称 } HTML代码 阅读全文
posted @ 2017-01-19 13:29 ghfjj 阅读(236) 评论(0) 推荐(0)