老师帮忙检查一下3-12的代码谢谢
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | <!DOCTYPE html> <html lang= "en" > <head> <meta charset= "UTF-8" /> <meta http-equiv= "X-UA-Compatible" content= "IE=edge" /> <meta name= "viewport" content= "width=device-width, initial-scale=1.0" /> <title>Document</title> <style> .ylj p { width : 100% ; height : 100% ; } .ylj p.wdf { width : 200px ; height : 50px ; position : fixed ; top : 310px ; } .ylj p.yj { width : 200px ; height : 50px ; position : fixed ; top : 300px ; right : 30px ; } </style> </head> <body> <div class= "ylj" > <p> <img src= "images/大图片.png" alt= "" /> </p> <p class= "wdf" > <img src= "images/红.png" alt= "" /> </p> <p class= "yj" > <img src= "images/蓝.png" alt= "" /> </p> </div> </body> </html> |
搜索
复制
12
收起
正在回答
1回答
同学你好,别忘记加清除默认内外边距的代码哦,否则有时候会出现滚动条,参考如下:
祝学习愉快!
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧