Skip to content

Instantly share code, notes, and snippets.

View ifyour's full-sized avatar
🏁
问题解决师

明明 ifyour

🏁
问题解决师
View GitHub Profile
@ifyour
ifyour / ellipsis.html
Last active August 24, 2017 01:53 — forked from anonymous/index.html
2行文字溢出显示省略, 支持 IE // Demo: http://js.jirengu.com/bozur
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.ellipsis-clamp {
line-height: 20px;
max-height: 40px;
@ifyour
ifyour / dropbox-scss-css-style-guide.md
Created April 10, 2017 23:32 — forked from kxxoling/dropbox-scss-css-style-guide.md
Dropbox (S)CSS 样式指南中文翻译

Dropbox (S)CSS 样式指南翻译

开源许可

“Every line of code should appear to be written by a single person, no matter the number of contributors.” —@mdo

通用部分

反例

  • 避免在 CSS 使用 HTML 标签选择器