我想让图像在悬停时略微增长。我知道这很简单,但我已经寻找了一个比其他例子好一个小时,似乎无法弄清楚我缺少的东西。我很感激帮助。这些图像保存到我的电脑。css悬停未执行
范围
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<embed src="73797^alarmclock.mp3"; autostart="true"; loop="true"; hidden="true";/>
<body>
<img src ="alarm clock2.jpg"/>
<p> Pulling the sheets into my body, I begin to sink back into the bed...
uggh... my alarm clock... time to get up..
<img style = "position:absolute; top:300px; right: 0px; z-index:1"
src="computer.jpg"/>
<IMG ID="grow" STYLE= "position:absolute; TOP:1157px; LEFT:599px;
WIDTH:47px; z-index:2; HEIGHT:47px" SRC="icon2.gif"/>
</body>
</html>
这里是stylesheet.css中
#grow:hover {
width: 100px;
height: 150px;
}
不要使用内联样式。你的问题是内联样式比CSS更优先。把它们放在'stylesheet.css'中,它就可以工作。 – Itay
为什么你使用内联样式和混乱的CSS。 – Sir
和不在引号中的所有内容都应该是小写。你用微软的话创造了这个吗? – PlantTheIdea