发表于: 2017-05-22 23:42:45
1 890
今天完成的事情:解决了首页刷新的bug、写静态页面
明天计划的事情:写公司搜索页
遇到的问题:
一、首页刷新的bug:
解决的办法:
//ui路由模块//fix the bug of carousel in homepage
//go to ‘home’ while the router is not finded
$urlRouterProvider.otherwise('/home');
// code before
// $urlRouterProvider.when('', "/home");
二、服务流程:小屏幕的响应式很别扭
三、成功案例的图片:
图片大小不一致,宽高比例也不一样。为了限制图片的大小,父元素的设置了%的padding。
为了居中,只好用:
position: absolute;
max-width: 70%;
max-height: 80%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
也不知道,这样写好不好。
收获:如上
评论