发表于: 2016-03-03 00:52:50
2 1167
今天完成的事情:完成task3,手机可以自适应 http://119.10.57.65/ptt06/task3/task3.html
明天计划的事情:开task4,做task3的时候想先复习下相关知识点,发现有点无从下手,看完跟没看似的,不如直接推进,不会再想办法。
遇到的问题:代码写的自己感觉可重构性不强,写到最后感觉自己在cad制图。。。留个尾巴,学到后面再想想怎么优化下。收获:1、给图片做超链接:
.htmer a{background:url(images/htmer_bg.jpg);no-repeat;display:block;width:87px;height:36px;cursor:hand;}
.htmer a:hover{background:url(images/htmer_bg_hover.jpg) no-repeat;}
<div class="htmer"><a href="http://" target="_blank"></a></div>
2、css书写顺序:
1.位置属性(position, top, right, z-index,display, float等)
2.大小(width, height, padding, margin)
3.文字系列(font, line-height, letter-spacing,color- text-align等)
4.背景(background, border等)
5.其他(animation, transition等)
评论