Html 为什么可以';我不能更改图像的宽度吗?

Html 为什么可以';我不能更改图像的宽度吗?,html,Html,我想知道为什么我不能更改图像的宽度?例如,如果更改代码html部分的宽度,则不会发生任何事情 尝试更改html中的宽度,当您更改值时,什么也不会发生 您需要格式化宽度和高度属性,style=“宽度:325px;高度:310px;” 替换: <a href="http://s1126.photobucket.com/user/ldocherty1/media/Screen%20Shot%202017-04-12%20at%2018.53.28_zpswixmqbb7.png.html" t

我想知道为什么我不能更改图像的宽度?例如,如果更改代码html部分的宽度,则不会发生任何事情

尝试更改html中的宽度,当您更改值时,什么也不会发生


您需要格式化宽度和高度属性,
style=“宽度:325px;高度:310px;”

替换:

<a href="http://s1126.photobucket.com/user/ldocherty1/media/Screen%20Shot%202017-04-12%20at%2018.53.28_zpswixmqbb7.png.html" target="_blank"><img src="http://i1126.photobucket.com/albums/l611/ldocherty1/Screen%20Shot%202017-04-12%20at%2018.53.28_zpswixmqbb7.png" border="0" style= "width=325px; height=310px;" alt=" photo Screen Shot 2017-04-12 at 18.53.28_zpswixmqbb7.png"/></a>
<a href="http://s1126.photobucket.com/user/ldocherty1/media/Screen%20Shot%202017-04-12%20at%2018.53.28_zpswixmqbb7.png.html" target="_blank"><img src="http://i1126.photobucket.com/albums/l611/ldocherty1/Screen%20Shot%202017-04-12%20at%2018.53.28_zpswixmqbb7.png" border="0" style="width:325px;height:310px;" alt="photo Screen Shot 2017-04-12 at 18.53.28_zpswixmqbb7.png"/></a>

至:

<a href="http://s1126.photobucket.com/user/ldocherty1/media/Screen%20Shot%202017-04-12%20at%2018.53.28_zpswixmqbb7.png.html" target="_blank"><img src="http://i1126.photobucket.com/albums/l611/ldocherty1/Screen%20Shot%202017-04-12%20at%2018.53.28_zpswixmqbb7.png" border="0" style= "width=325px; height=310px;" alt=" photo Screen Shot 2017-04-12 at 18.53.28_zpswixmqbb7.png"/></a>
<a href="http://s1126.photobucket.com/user/ldocherty1/media/Screen%20Shot%202017-04-12%20at%2018.53.28_zpswixmqbb7.png.html" target="_blank"><img src="http://i1126.photobucket.com/albums/l611/ldocherty1/Screen%20Shot%202017-04-12%20at%2018.53.28_zpswixmqbb7.png" border="0" style="width:325px;height:310px;" alt="photo Screen Shot 2017-04-12 at 18.53.28_zpswixmqbb7.png"/></a>


查看突出显示的语法,您会发现您的HTML无效。因为您的语法错误。它应该是样式=“宽度:325px;高度:310px;”样式=“宽度=325px高度=310px”。你可以在中间看到一个额外的引文。看起来像简单的语法错误。@查利74谢谢你的贡献,我也必须包括;在我的像素值的末尾。谢谢帮助。当我让我在三分钟内时,我会投票。