发表于: 2019-11-01 19:20:10
1 833
今天完成的事情:
搭建任务4框架
明天计划的事情:
完成任务4
遇到的问题:
<input>文本框内背景图片无法实现
使用span添加类选择器phone和password,在phone和password添加背景图片,使用绝对定位将图片定位到input文本框里。
收获:
background-color 属性定义了元素的背景颜色.
颜色值通常以以下方式定义:
十六进制 - 如:"#ff0000"
RGB - 如:"rgb(255,0,0)"
颜色名称 - 如:"red"
background-image 属性描述了元素的背景图像.
默认情况下,背景图像进行平铺重复显示,以覆盖整个元素实体.
background-repeat水平方向平铺 :repeat-x不让图像平铺:no-repeat
background-position 属性改变图像在背景中的位置
背景- 简写属性
background:#ffffff url('img_tree.png') no-repeat right top;
当使用简写属性时,属性值的顺序为::
background-color
background-image
background-repeat
background-attachment背景图像是否固定或者随着页面的其余部分滚动
background-position
评论