随笔分类 -  html+css

摘要:文件名的传递 全路径获取 文件名的传递 只获取文件名 获取input type="file" 选择的文件大小、文件名称、上次修改时间、类型等信息(*多个文件会存储在files数组中) 利用image属性来获取input file里文件的大小: *ps:下面主要谈谈另一种方式,在html标签中有一个不 阅读全文
posted @ 2017-01-19 14:03 ghfjj 阅读(117544) 评论(1) 推荐(7)
摘要:我们常常会在网页的HTML里面看到形如[if lte IE 9]……[endif]的代码,表示的是限定某些浏览器版本才能执行的语句,那么这些判断语句的规则是什么呢?请看下文: <!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]--> <!--[if IE]> 所有的I 阅读全文
posted @ 2017-01-19 13:59 ghfjj 阅读(490) 评论(0) 推荐(0)
摘要:1 2 3 4 5 1 阅读全文
posted @ 2017-01-19 13:56 ghfjj 阅读(311) 评论(0) 推荐(0)
摘要:1 2 3 4 5 Document 6 7 8 获取播放时间 9 播放 10 隐藏控制框 11 开启静音 12 音量 13 14 当前音量: - 15 16 83 阅读全文
posted @ 2017-01-19 13:53 ghfjj 阅读(363) 评论(0) 推荐(0)
摘要:http://www.w3school.com.cn/HTML5/html_5_video_dom.asp 我尝试用jQuery控制HTML5视频,两个视频分别在两个tab中,我希望点中tab后,该tab里的视频可以立即播放,而另外tab里的视频能够停止。我的代码是这样的: 1 $('#playMo 阅读全文
posted @ 2017-01-19 13:52 ghfjj 阅读(1259) 评论(0) 推荐(0)
摘要:标题:会取当前页面title里面的内容。 图片:会取当前页面body内第一张符合条件的图片。 现在想在有标题的新闻内页上把新闻标题作为分享的标题(整个网站的标题) 阅读全文
posted @ 2017-01-19 13:45 ghfjj 阅读(4369) 评论(0) 推荐(1)
摘要:1 $(".list2 li:nth-child(10n)").after(''); 2 4 5 6 7 jQuery每隔10条加一条线 8 9 14 15 16 19 20 001 21 002 22 003 23 004 24 005 25 ... 阅读全文
posted @ 2017-01-19 13:43 ghfjj 阅读(391) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-01-19 13:39 ghfjj 阅读(266) 评论(0) 推荐(0)
摘要: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 阅读(3598) 评论(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 阅读(258) 评论(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)
摘要:<a href="" title="想显示的详细信息"></a> <span title="想显示的详细信息"></span> 阅读全文
posted @ 2017-01-19 13:30 ghfjj 阅读(1873) 评论(0) 推荐(0)
摘要:邮件客户端检测: 阅读全文
posted @ 2017-01-19 13:30 ghfjj 阅读(301) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/comikey/article/details/8954479 解决思路是把input 放在文字的上边,弄成透明的,这样在点文字时,实际是点击了input,这样就实现了文件的上传。是不是很简单呀。 具体代码: <style> #uploadImg{ font 阅读全文
posted @ 2017-01-19 13:29 ghfjj 阅读(53998) 评论(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)
摘要:1 @charset "utf-8"; 2 body{margin:0px; padding:0px; margin:0px auto; font-size:14px; line-height:24px; color:#606060; width:100%; min-width:1000px; width:expression((documentElement.clientWidth < 1... 阅读全文
posted @ 2017-01-19 13:26 ghfjj 阅读(364) 评论(0) 推荐(0)
摘要:1 2 3 4 5 39 41 42 43 Hello World 123456 44 Hello World 123456 45 Hello World 123456 46 阅读全文
posted @ 2017-01-19 13:24 ghfjj 阅读(290) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-01-19 13:23 ghfjj 阅读(172) 评论(0) 推荐(0)
摘要:1 方法1: onfocus=this.blur() 当鼠标放上就离开焦点 2 3 4 方法2:readonly 5 6 7 8 方法3: disabled 9 10 来源: http://www.jb51.net/web/62128.html 阅读全文
posted @ 2017-01-19 13:22 ghfjj 阅读(1222) 评论(0) 推荐(0)