今天研究yii的多语言切换,先在baidu搜索搜了一大堆基本都一样,感觉不怎么好,于是乎google, 不得不说技术文章还是google靠谱,因为里面搜到的基本都回去git, stack overflow 等地方找到答案, 在找yii多语言的时候最终搜到了yiiframework里面的一个ext 转到git, git的说明还是比较清晰的,但是配置完成后不能工作,然后阅读他的代码,自己修改了一番,最...
分类:
编程语言 时间:
2014-11-04 15:04:03
阅读次数:
236
cmstop-error.csshtml,body,head,div,p,a { margin: 0; padding: 0;}.body-bg { background-color: #dff1f4;}.main { width: 700px; overflow: h...
分类:
其他好文 时间:
2014-11-04 10:54:45
阅读次数:
295
??
裁剪 div 元素中内容的左/右边缘 - 如果溢出元素的内容区域的话:
div
{
overflow-y:hidden;
}
div
{
width:110px;
height:110px;
border:thin solid black;
overflow-x:hidden;
overflow-y:hidden;
}
...
分类:
Web程序 时间:
2014-11-03 13:07:13
阅读次数:
256
1.Iframe不显示边框:frameborder=0
2.Iframe不显示横向滚动条:在iframe所指向的页面加入:
style>
html{overflow-x:hidden;}
style>
3.Iframe动态刷新:在父页面中:iframeId.window.location.replace(url);//会请求url
4.Iframe父页面调用子页面的方法:...
原文:CSS3 实现六边形Div图片展示效果效果图: 实现原理:
这个效果的主要css样式有:
1.>transform: rotate(120deg); 图片旋转
2.>overflow:hidden; 超出隐藏
3.>visibility: hidden; 也是隐藏,与display:none;...
分类:
Web程序 时间:
2014-11-02 15:01:29
阅读次数:
426
Description:请实现以下基于双向链表的list类enum Error_code{ success, underflow, overflow};template struct Node{ List_entry entry; Node *next; Node *back;};template ...
分类:
其他好文 时间:
2014-11-01 21:44:19
阅读次数:
442
Description:请实现以下基于单向链表的list类enum Error_code{ success, underflow, overflow};template struct Node{ List_entry entry; Node *next;};template class MyList...
分类:
其他好文 时间:
2014-11-01 20:33:52
阅读次数:
269
#include #include #define NULL 0#define ERROR 0#define OVERFLOW -2#define OK 1typedef int Status ;typedef int ElemType;typedef struct CNode{ ElemTy...
分类:
其他好文 时间:
2014-11-01 16:05:01
阅读次数:
181
效果图:实现原理:这个效果的主要css样式有:1.>transform: rotate(120deg); 图片旋转2.>overflow:hidden; 超出隐藏3.>visibility: hidden; 也是隐藏,与display:none;相似,但不同的是,它虽然隐藏了,但依然会在网页中占有位...
分类:
Web程序 时间:
2014-11-01 00:54:43
阅读次数:
302
粘自:http://www.jb51.net/css/110652.html在最外层div加以下样式 height:100%; overflow:hidden; 其它方法: Div即父容器不根据内容自适应高度,我们看下面的代码: 代码如下: 当Content内容多时,即使main设置了高度10...
分类:
其他好文 时间:
2014-10-31 11:45:57
阅读次数:
191