css样式的属性名background-image

html-css016

css样式的属性名background-image,第1张

1.background是总的属性名称,你可以链接的。也可以自己写“属性组”来实现。2.backgroundImage同学,你写错了background-image才对。这个是控制背景是图片的时候的。3.background-Color,背景可以指定是单纯一种颜色。4.image这个标签哥米见过,应该是<img>标签吧。你这个写法严重不规范啊。呵呵~

<head runat="server">

<title></title>

<script type="text/javascript">

function changestyle(obj, state) {

if (state == 0) {

obj.style.borderColor = "blue"

}

else if (state == 1) {

obj.style.borderColor = "#EEBDEC"

}

}

</script>

</head>

<body>

<form id="form1" runat="server">

<div>

.......................

<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("cp_pic0") %>' ImageAlign="Middle" BorderColor="#EEBDEC" BorderStyle="Solid" BorderWidth="1px" Height="150px" Width="150px" onmouseover="changestyle(this, 0)" onmouseout="changestyle(this, 1)" />

................................

</div>

</form>

</body>

</html>