元素的背景
问题描述
为什么我设置的背景没有被显示
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>主题</title> <style type="text/css">body{background-image: url("http://image.baidu.com/search/detail?ct=503316480&z=undefined&tn=baiduimagedetail&ipn=d&word=%E7%BD%91%E7%AB%99%E8%83%8C%E6%99%AF%E5%9B%BE%E7%89%87&step_word=&ie=utf-8&in=&cl=2&lm=-1&st=undefined&cs=726661828,2758549640&os=2228873300,1871909306&simid=3439302190,300194912&pn=5&rn=1&di=19776411160&ln=1590&fr=&fmq=1534075403413_R&fm=&ic=undefined&s=undefined&se=&sme=&tab=0&width=undefined&height=undefined&face=undefined&is=0,0&istype=0&ist=&jit=&bdtype=0&spn=0&pi=0&gsm=0&hs=2&objurl=http%3A%2F%2Fpic3.16pic.com%2F00%2F03%2F77%2F16pic_377171_b.jpg&rpstart=0&rpnum=0&adpicid=0&ctd=1534075408417^3_1182X859%1#pn=5&spn=0&di=19776411160&adpicid=0&lpn=0&cs=726661828%2C2758549640&pi=0&simid=3439302190%2C300194912&objurl=http%3A%2F%2Fpic3.16pic.com%2F00%2F03%2F77%2F16pic_377171_b.jpg&fromurl=ippr_z2C%24qAzdH3FAzdH3Fooo_z%26e3B8mrtv_z%26e3Bv54AzdH3Fri5p5AzdH3Frtv_n00808_z%26e3Bip4s&W=650&H=365&S=&TP=jpg")}div{color: red}hr{color: aqua} </style></head><body><br/><div ><big>登录页面</big></div><hr/>账户:<input type="email"><br><br/>密码:<input type="password"><br><br/><button type="button">注册</button></body></html>
问题解答
回答1:url指向具体图片地址
相关文章:
1. javascript - 子组件触发父组件的自定义事件 父组件无任何反应2. pdo 写入到数据库的内容为中文的时候写入乱码3. javascript - 分享到微信朋友圈的网页,在分享到微信好友,如何带一些标题 背景图片????4. java - 主线程在子线程未结束情况下退出5. PHP类中的$this6. nignx - docker内nginx 80端口被占用7. dockerfile - [docker build image失败- npm install]8. golang - 用IDE看docker源码时的小问题9. Python字符串转大小写问题10. 冒昧问一下,我这php代码哪里出错了???