正如我在教程响应式Web设计三步走当中所讲的,响应式的Web设计其实并不难,但是要让元素在布局切换时能够平滑过渡就比较考验技巧了。现在我分享在编码时常用的五个CSS技巧并举例说明。这些技巧都是使用简单的CSS属性,如min-width、max-width、overflow 和相对属性值,但是这些属性...
                            
                            
                                分类:
Web程序   时间:
2015-06-17 13:16:28   
                                阅读次数:
140
                             
                         
                    
                        
                            
                            
                                给DIV限定宽度或高度,并指定overflow样式为auto,这样当内空超出后就会自动出现滚动条了.如
                            
                            
                                分类:
其他好文   时间:
2015-06-17 13:08:13   
                                阅读次数:
101
                             
                         
                    
                        
                            
                            
                                If LOB storage is not defined and LOB attribute size exceeds 4000 characters the attributes which overflow will automatically be placed in the tables tablespace in default configured LOB storage and i...
                            
                            
                                分类:
其他好文   时间:
2015-06-17 11:40:10   
                                阅读次数:
115
                             
                         
                    
                        
                            
                            
                                题目描述:Divide two integers without using multiplication, division and mod operator.If it is overflow, return INT_MAX. 提示中谈到Binary Search,由此可想到解决方案。solu....
                            
                            
                                分类:
其他好文   时间:
2015-06-16 22:35:23   
                                阅读次数:
167
                             
                         
                    
                        
                            
                            
                                .word{ min-width:100px;max-width:200px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}首先设置表头每列宽度,然后在需要过长用省略号表示的列的td上面加class="word",注意这个样式加...
                            
                            
                                分类:
其他好文   时间:
2015-06-16 21:08:13   
                                阅读次数:
114
                             
                         
                    
                        
                            
                            
                                @charset "utf-8";.RR_visi { display: block;}.RR_hidd { display: none;}.RR_mask_body { overflow: hidden; margin: 0 auto;}.RR_mask_main { height: 100%; ...
                            
                            
                                分类:
Web程序   时间:
2015-06-16 12:51:49   
                                阅读次数:
158
                             
                         
                    
                        
                            
                            
                                Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.本题是求除法,但是要注意int的边界值。时间:14ms,代码如下:class S...
                            
                            
                                分类:
其他好文   时间:
2015-06-14 00:28:35   
                                阅读次数:
143
                             
                         
                    
                        
                            
                            
                                最近开始刷刷的Leetcode题,遇到了一道这么一个简单的题 Reverse Integer ,然而并没有看上去的那么简单, 特殊的坑就如这道题说的 overflow ! 一开始天真的认为就是每个语言自己定义的最大整数,如 ? 在python中 >>...
                            
                            
                                分类:
其他好文   时间:
2015-06-13 10:03:52   
                                阅读次数:
132
                             
                         
                    
                        
                            
                            
                                这是CSAPP官网上的著名实验,通过注入汇编代码实现堆栈溢出攻击。实验材料可到我的github仓库 https://github.com/Cheukyin/CSAPP-LAB/ 选择buffer-overflow分支下载 linux默认开启ASLR,每次加载程序,变量地址都会不一样,所以若要关...
                            
                            
                                分类:
移动开发   时间:
2015-06-12 20:37:41   
                                阅读次数:
219
                             
                         
                    
                        
                            
                            
                                由于系统自定的select样式的确丑到爆,所以抽空写了这么一个可以自定义下拉菜单样式的插件,思路就是隐藏select,用一个span标签显示内容,ul标签显示下拉列表,如图:IE下存在一个BUG,设置overflow-y后,IE下设置width无效,只测试了IE9,其他版本未测试,当然如果能加入自定...
                            
                            
                                分类:
Web程序   时间:
2015-06-12 13:03:21   
                                阅读次数:
190