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

知识小碎片 #2

Open
yandeqiang opened this issue May 31, 2017 · 4 comments
Open

知识小碎片 #2

yandeqiang opened this issue May 31, 2017 · 4 comments

Comments

@yandeqiang
Copy link
Owner

var a = /\w{1, 32}/;
var b = /\w{1,32}/;

能看出上面代码的区别吗?

@yandeqiang
Copy link
Owner Author

html 行内元素的 fullscreen 事件的事件的效果, 与块级元素的有什么区别。

@yandeqiang
Copy link
Owner Author

http 自定义 header 问题

是 nginx 对header name的字符做了限制,默认 underscores_in_headers 为off,表示如果header name中包含下划线,则忽略掉。

如果确实需要下划线,可以配置为 on

@yandeqiang
Copy link
Owner Author

yandeqiang commented Nov 30, 2017

html css 禁止选择文字

//HTML、CSS禁止选择文字,针对IE、FF、Chrome等
<div unselectable="on" style="-moz-user-select:none;-webkit-user-select:none;" onselectstart="return false;">
你选不了我,
unselectable: IE/Opera, 
-moz-user-select: FireFox, 
onselectstart: IE/Safari, 
-webkit-user-select:Chrome
</div>

@yandeqiang
Copy link
Owner Author

记录问题, 还没找到解决方案

  1. transform animation 有时侯会冲突

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

No branches or pull requests

1 participant