Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文章更新 [ 2016-01-27 ] #18

Open
yutingzhao1991 opened this issue Jan 28, 2016 · 0 comments
Open

文章更新 [ 2016-01-27 ] #18

yutingzhao1991 opened this issue Jan 28, 2016 · 0 comments
Labels

Comments

@yutingzhao1991
Copy link
Owner

  • 谈谈inline-block的几个神奇的用法 (confidence68)

    前言inline-block,我们平时用的很多,最普通的用法就是几个div在一行中显示,我们用display:inline-block。今天之所以写这篇文章,主要是写inline-block的几个比较奇特的用法。 实现div宽度根据内容自适应我们知道div是块级元素,假如我们不设置宽度,那么div的宽度默认是100%;**问:要想div宽度根据内容自适应怎么办?**请看下面代码:...

  • 字符串加密(转换成图片的base64码) (mishe)

    字符串加密(转换成图片的base64码)本方案的基础是需要浏览器支持canvas。 使用方法 转换为图片```javascriptvar str=JSON.stringify({a:'中文',b:'sss'}), str2=compressor.compress(str)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant