Skip to content

Instantly share code, notes, and snippets.

View MOxFIVE's full-sized avatar

MOxFIVE MOxFIVE

View GitHub Profile
@MOxFIVE
MOxFIVE / Baidu Share with Font Awesome.markdown
Created April 23, 2016 06:43
Baidu Share with Font Awesome
@MOxFIVE
MOxFIVE / Flipped, Heartbeat.markdown
Created April 23, 2016 06:45
Flipped, Heartbeat
@MOxFIVE
MOxFIVE / index.html
Created April 23, 2016 06:49
text-overflow: ellipsis
<span>CSS is awesome, especially when you can scroll
to see extra text instead of just
having it overlap other text by default.</span>
<p>CSS is awesome, especially when you can scroll
to see extra text instead of just
having it overlap other text by default.</p>
@MOxFIVE
MOxFIVE / 0_reuse_code.js
Created June 8, 2016 17:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
// 不存在
if (!$("element").length) { }
// 存在
if ($("element").length) { }

避免在<a>标签中嵌套<div>等块级元素,部分模板解析引擎会误解析。如果样式需要可使用<span>等标签代替然后通过css来控制样式

Excel2003 → 65536行,256列;

Excel2007↑ → 1048576行,16384列。

2^10=1024,2^20=1048576,2^7=128, 2^14=16834