欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

nicejforms——美化表單不用愁

 更新時(shí)間:2007年02月20日 00:00:00   投稿:mdxy-dxy  
這篇文章主要介紹了nicejforms——美化表單不用愁

nicejforms可以算是jquery的一個(gè)插件,可以起到非常好的美化表單的作用

demo:http://www.healdream.com/upload/html/nicejforms/nicejforms_green.html

用法:
首先將兩個(gè)js包含進(jìn)來,就像這樣

復(fù)制代碼 代碼如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Page title</title>

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="nicejforms.js"></script>
</head>
<body>

然后加入css
復(fù)制代碼 代碼如下:

<style type="text/css" media="screen">@import url("niceforms.css")</style>

接著對(duì)form,設(shè)定class
復(fù)制代碼 代碼如下:

<form action="vars.php" method="POST" class="niceform">

最后寫下如下語句
<script type="text/javascript">
$(document).ready( function() { $.NiceJForms.build(); } );
</script>
這樣就大功告成了!

相關(guān)文章

最新評(píng)論