nicejforms——美化表單不用愁
更新時間:2007年02月20日 00:00:00 投稿:mdxy-dxy
這篇文章主要介紹了nicejforms——美化表單不用愁
nicejforms可以算是jquery的一個插件,可以起到非常好的美化表單的作用
demo:http://www.healdream.com/upload/html/nicejforms/nicejforms_green.html
用法:
首先將兩個js包含進來,就像這樣
復制代碼 代碼如下:
<!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
復制代碼 代碼如下:
<style type="text/css" media="screen">@import url("niceforms.css")</style>
接著對form,設定class
復制代碼 代碼如下:
<form action="vars.php" method="POST" class="niceform">
最后寫下如下語句
<script type="text/javascript">
$(document).ready( function() { $.NiceJForms.build(); } );
</script>
這樣就大功告成了!
相關文章
jquery中ajax調用json數(shù)據(jù)的使用說明
jquery里提供了便捷的ajax運用,下面總結我自己的一些經(jīng)驗2011-03-03jQuery DateTimePicker 日期和時間插件示例
jQuery UI很強大,其中的日期選擇插件Datepicker是一個配置靈活的插件,這篇文章主要介紹了jQuery DateTimePicker 日期和時間插件示例,有興趣的可以了解一下。2017-01-01jquery插件splitScren實現(xiàn)頁面分屏切換模板特效
這篇文章主要介紹了jquery插件splitScren實現(xiàn)頁面分屏切換模板特效的相關資料,需要的朋友可以參考下2015-06-06淺談struts1 & jquery form 文件異步上傳
下面小編就為大家?guī)硪黄獪\談struts1 & jquery form 文件異步上傳。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-05-05