BootWiki教程网
源代码:
点击运行
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Bootstrap 版本 2.0 使用搜索图标实例</title> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <meta content="Example of using icons in search form - Bootstrap version 2.0 from w3cschool.cc" name="description"> <meta content="" name="author"> <!-- Le styles --> <link href="/try/bootstrap/twitter-bootstrap-v2/docs/assets/css/bootstrap.css" rel="stylesheet"> <style type="text/css"> form { margin-top: 50px; } </style> <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le fav and touch icons --> <link href="/try/bootstrap/twitter-bootstrap-v2/docs/examples/images/favicon.ico" rel="shortcut icon"> <link href="/try/bootstrap/twitter-bootstrap-v2/docs/examples/images/apple-touch-icon.png" rel="apple-touch-icon"> <link href="/try/bootstrap/twitter-bootstrap-v2/docs/examples/images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72"> <link href="/try/bootstrap/twitter-bootstrap-v2/docs/examples/images/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114"> </head> <body> <div class="container"> <div class="row"> <div class="span12"> <form class="well form-search"> <input class="input-medium search-query" type="text"> <button class="btn" type="submit"><i class="icon-search"></i> 搜索</button> </form> </div> </div> <footer> <p>© Company 2013</p> </footer> </div> </body> </html>
运行结果