如何在CSS中调整背景图像的大小以及什么是;cute25.cur“是什么;?
我看过“用CSS覆盖HTML img”和“用CSS按比例调整图像大小?”,但这两个都没有帮助我 我的大墙纸图像超出了我的页面大小,看起来很模糊 我试过使用:如何在CSS中调整背景图像的大小以及什么是;cute25.cur“是什么;?,css,image,resize,Css,Image,Resize,我看过“用CSS覆盖HTML img”和“用CSS按比例调整图像大小?”,但这两个都没有帮助我 我的大墙纸图像超出了我的页面大小,看起来很模糊 我试过使用: img.resize { max-width:100%; height: auto; } 对于这种类型的代码: body, html { height: 100%; width: 100%; padding: 0; margin: 0; background: #000 url('WALLPAPER IMAG
img.resize {
max-width:100%;
height: auto; }
对于这种类型的代码:
body, html {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
background: #000 url('WALLPAPER IMAGE URL') no-repeat fixed center;
cursor: url('CURSOR IMAGE URL'), url('IDK WHY cute25.cur IS HERE EITHER'), help;
div#mask cursor: not-allowed; z-index: 999; height: 100%; width: 100%; }
但不管我把image.resize放在哪里,我都没有让它工作
请帮忙。
尊敬的,~Serliek将此添加到您的css中
background-size:contain;
这是我的图像正常大小且不模糊的代码:
body, html {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
background: #000 url('WALLPAPER IMAGE URL') no-repeat fixed center;
background-size:contain;
cursor: url('CURSOR IMAGE URL'), url('cute25.cur'), help;
div#mask cursor: not-allowed; z-index: 999; height: 100%; width: 100%; }
我在谷歌上搜索什么是cute25.cur?关于“cute25.cur”:可能这是在另一个CSS文档上复制的(basead)CSS(可能这个CSS原始文档尚未由作者完成),并且
cute25.cur应该是由某人创建的自定义光标,所以它并不重要。好的,我知道了,谢谢!:D