폼 단추 에 배경 그림 추가

1626 단어 그림.
심심 해서 button 배경 그림 에 관 한 demo 를 썼 습 니 다. 순 전 히 재 미 있 게 썼 습 니 다. 웃 지 마 세 요.
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script src="lib/jquery-1.6.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(
	function(){
	
	}
);

</script>
<style type="text/css">
#icon_center{
	background-image:url(img/save.gif);
	background-repeat :no-repeat;
	font-size:12px;
	color:#000099;
	padding-left:18px;
	width:52px;
	text-align:right;
}
</style>
<title>     </title>
</head>

<body>
	<input id="icon_center" icon='icon-save' type='button' value='  ' >
	background-image:url(img/save.gif);//         <p>
	background-repeat :no-repeat;//         <p>
	font-size:12px;//        12px<p>
	color:#000099;//        #000099<p>
	padding-left:18px;//     18px<p>
	width:52px;//      52px<p>
	text-align:right;//           <p>
</body>
</html>

 
비고: 여기 CSS 스타일 은 다른 속성 과 함께 해 야 합 니 다. 그렇지 않 으 면 효과 가 보이 지 않 습 니 다.

좋은 웹페이지 즐겨찾기