自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

SalmonellaVaccine的专栏

不走弯路,也就错过了风景。无论如何,感谢经历。

  • 博客(16)
  • 收藏
  • 关注

原创 使用soft hyphen(­)自动断行

本文的起因是页面中有像“$9.99/yr”这样的字符串,我们希望如果这个字符串太长的话就从“/”前面断开。最初有两种解决方案,一是用,另一个是用soft hyphen ­。说实话这两个东西本人都是第一次见到。google + 实验之后,发现不是所有浏览器都支持,­则没有起到预期的效果,也就是说并没有把字符串从“/”前面断开。继续google,发现后者没有效果

2015-04-30 09:01:53 1485

原创 Firefox中的event is undefined

前两天用jQuery写一个页面动态效果,代码如下:$('.basket').bind('click', event, toggle );这个代码在chrome和IE中都没有问题,唯独在firefox中显示Firefox event is undefined在网上查了查,解释如下(http://stackoverflow.com/a/2974614/2177408):

2015-04-30 08:46:21 2115

转载 Jquery中的offset()和position()方法详解

http://js8.in/2010/09/15/jquery%E4%B8%AD%E7%9A%84offset%E5%92%8Cposition%E6%96%B9%E6%B3%95%E8%AF%A6%E8%A7%A3/再给普加地图添加搜索提示的时候,我使用了jQuery的offset方法,因为习惯了,结果出现了不对齐的bug,说明offset的方法获取的top和left值是错误的。后来

2015-04-24 00:03:41 1235

转载 Eclipse开发Android应用程序入门

http://coolshell.cn/articles/4270.htmlBy Chris Blunt翻译:赵锟原文出处:http://www.smashingmagazine.com/2010/10/25/get-started-developing-for-android-with-eclipse/如今的移动设备应用程序开发充满着让人振奋的东西。功能强大的

2015-04-22 16:10:30 780

转载 Android获取摄像头视频帧并实时处理(转载)

原文出处:http://blog.csdn.net/jefry_xdz/article/details/7901587 Android有一种机制,如果想在回调函数onPreviewFrame(byte[] data, Camera camera)中获取视频数据,必须调用camera.startPreview(); onPreviewFrame才会有视频数据回调过来。有时候我们不想预

2015-04-22 16:08:52 7395

转载 Android最新开发环境搭建(Android 5.0)

http://bestzp.com/archives/33一个全新的Windows操作系统,想要搭建Android开发环境,需要以下几步:1、安装JDKAnroid目前还不支持JDK8里的新特性,所以不推荐JDK8。官方推荐是6,我装的7也没问题,大家可自行选择。下面以JDK7为例,对JDK的安装进行讲解。下载JDK百度JDK7 下载,随便找个下载地

2015-04-22 16:06:24 743 1

转载 jQuery : Getting a selected element's outer HTML

http://aghoshb.com/articles/jquery-getting-a-selected-elements-outer-html.htmlBy Aghosh BabuOn January 1, 2013Tags , html5, jQuery,outerHTMLPermalink2The .h

2015-04-17 06:19:07 957

转载 jquery 关于offset和position详解

转载自 http://www.cnblogs.com/luhe/archive/2012/11/14/2769263.html我们有时候需要实现这样一种功能:点击一个按钮,然后在按钮的下方显示一个div。当按钮位于角落时,div的位置设定就需要计算,使div完全显示。  我打算使用offset()方法实现此功能,但要先弄清楚他的功能。实验:  off

2015-04-15 06:39:43 739

转载 Stacking Order of Multiple Backgrounds

https://css-tricks.com/stacking-order-of-multiple-backgrounds/Multiple background images is a cool feature of CSS3. The syntax is easy, you just comma separate them. I find it's easiest/best t

2015-04-15 06:38:55 448

转载 clear both or overflow hidden , a clearfix solution

http://stackoverflow.com/a/15182978/2177408overflow:hidden makes the element establish a new block formatting context. This fixes the float containment of any children floating within it. This

2015-04-15 06:35:02 494

转载 eval in if statement?

http://stackoverflow.com/questions/3462141/eval-in-if-statement if(Eval("SaveDate") != DBNull.Value){ %> do magic %>gives me error: Databinding methods s

2015-04-15 06:33:28 460

转载 Assigning out/ref parameters in Moq

http://stackoverflow.com/a/3135677/2177408public interface IService{ void DoIt(out string a);}[TestMethod]public void Test(){ var service = new MockIService>(); var expectedVal

2015-04-15 06:31:04 506

转载 Fit background image to div

http://stackoverflow.com/a/8200264You can achieve this with the background-size property, which is now supported by most browsers.To scale the background image to fit inside the div:ba

2015-04-11 04:16:27 833

转载 jQuery Click fires twice when clicking on label

http://stackoverflow.com/a/24564826/2177408I tried adding the solution above by adding:evt.stopPropagation();evt.preventDefault();but didn't work. However adding this:evt.stopImmediat

2015-04-09 02:39:51 581

转载 jQuery .animate() forces style “overflow:hidden”

http://stackoverflow.com/questions/3363035/jquery-animate-forces-style-overflowhiddenjQuery's .animate() forces the style overflow: hidden when triggered, messing with my animated element becaus

2015-04-09 02:36:39 804 1

转载 通过CSS3 justify实现两端对齐

http://demo.doyoe.com/css3/justify/浏览器参照基准:Firefox4 and Later, Chrome5 and Later, Safari5 and Later, Opera10.53 and Later, IE5.5 and Later* 两端对齐方案基于 text-align:justify 及 text-align-las

2015-04-01 08:40:26 1154

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除