我的作品主要运用了前端的知识(HTML和CSS): 在结构和样式上相分离 ,采用了外部样式表。①html的标签运用了< div></ div>和< span></ span>来设置名片的内容:代码如下:
职位:第五届青训营学员
手机号:*****
QQ:123
邮箱:123@qq.com
body { height: 100%; background: no-repeat; overflow: hidden; }
#whole { height: 320px; width: 500px; background-color: rgb(192, 250, 255); border-radius: 5%; position: relative; left: 25%; top: 15%; }
#header { background-image: url(image.baidu.com/search/deta…); height: 150px; width: 150px; border-radius: 75%; background-size: 100% 100%; position: absolute; top: 120px; left: 290px; }
#message { position: absolute; top: 60px; left: 60px; }
span { display: block; margin-bottom: 5px; font-family: 宋体; } 但是本作品运用码上掘金还未能导入正确的url,不能运行出图片内容,还需要改善。