【发布时间】:2013-09-02 07:21:28
【问题描述】:
我希望图像在悬停在其上时略微增大。我知道这很简单,但是我在其他示例中寻找了一个小时,似乎无法弄清楚我缺少什么。我很感激帮助。这些图像已保存到我的计算机中。
范围
<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中就可以了。 -
你为什么使用内联样式和 CSS 太乱了。
-
所有不在引号中的都应该是小写。你是用 microsoft word 还是什么东西创建的?