实例首页
自学教程
IT工具箱
源代码
下载代码
左右布局
点击运行 >
<!DOCTYPE html> <html> <head> <title>Foundation 实例 前置和后置标签</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdn.staticfile.org/foundation/5.5.3/css/foundation.min.css"> <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.staticfile.org/foundation/5.5.3/js/foundation.min.js"></script> <script src="https://cdn.staticfile.org/foundation/5.5.3/js/vendor/modernizr.js"></script> </head> <body> <form> <div class="row"> <h2>前置和后置标签</h2> <p>圆角前置和后置标签:</p> <div class="large-6 columns"> <div class="row collapse prefix-radius"> <div class="small-3 columns"> <span class="prefix">Prefix</span> </div> <div class="small-9 columns"> <input type="text" placeholder="Value"> </div> </div> </div> <div class="large-6 columns"> <div class="row collapse postfix-radius"> <div class="small-9 columns"> <input type="text" placeholder="Value"> </div> <div class="small-3 columns"> <span class="postfix">Postfix</span> </div> </div> </div> </div> <div class="row"> <p>圆形前置和后置标签按钮:</p> <div class="large-6 columns"> <div class="row collapse prefix-round"> <div class="small-3 columns"> <a href="#" class="button prefix">Go</a> </div> <div class="small-9 columns"> <input type="text" placeholder="Value"> </div> </div> </div> <div class="large-6 columns"> <div class="row collapse postfix-round"> <div class="small-9 columns"> <input type="text" placeholder="Value"> </div> <div class="small-3 columns"> <a href="#" class="button postfix">Go</a> </div> </div> </div> </div> </form> </body> </html>
运行结果: