UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

93 lines (89 loc) 3.94 kB
<!DOCTYPE html> <html lang="en"> <head> <meta name="keywords" content="Javascript Button, jQuery Button, CheckBox, Toggle Button, Repeat Button, Radio Button, Link Button, Button" /> <meta name="description" content="Javascript Button Text Positioning." /> <title id='Description'>Button Image Positioning</title> <link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <script type="text/javascript" src="../../../scripts/jquery-1.12.4.min.js"></script> <script type="text/javascript" src="../../../scripts/demos.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript"> $(document).ready(function () { // Create jqxButton widgets. $("#Button1").jqxButton({ imgSrc: "../../../images/twitter.png", imgPosition: "top", width: 120, height: 50 }); $("#Button2").jqxButton({ imgSrc: "../../../images/twitter.png", imgPosition: "topLeft", width: 120, height: 50 }); $("#Button3").jqxButton({ imgSrc: "../../../images/twitter.png", imgPosition: "topRight", width: 120, height: 50 }); $("#Button4").jqxButton({ imgSrc: "../../../images/twitter.png", imgPosition: "center", width: 120, height: 50 }); $("#Button5").jqxButton({ imgSrc: "../../../images/twitter.png", imgPosition: "left", width: 120, height: 50 }); $("#Button6").jqxButton({ imgSrc: "../../../images/twitter.png", imgPosition: "right", width: 120, height: 50 }); $("#Button7").jqxButton({ imgSrc: "../../../images/twitter.png", imgPosition: "bottom", width: 120, height: 50 }); $("#Button8").jqxButton({ imgSrc: "../../../images/twitter.png", imgPosition: "bottomLeft", width: 120, height: 50 }); $("#Button9").jqxButton({ imgSrc: "../../../images/twitter.png", imgPosition: "bottomRight", width: 120, height: 50 }); }); </script> </head> <body class='default'> <table> <tr> <td>Top</td> <td>Top Left</td> <td>Top Right</td> </tr> <tr> <td> <input type="button" id='Button1' /> </td> <td> <input type="button" id='Button2' /> </td> <td> <input type="button" id='Button3' /> </td> </tr> </table> <table> <tr> <td>Center</td> <td>Left</td> <td>Right</td> </tr> <tr> <td> <input type="button" id='Button4' /> </td> <td> <input type="button" id='Button5' /> </td> <td> <input type="button" id='Button6' /> </td> </tr> </table> <table> <tr> <td>Bottom</td> <td>Bottom Left</td> <td>Bottom Right</td> </tr> <tr> <td> <input type="button" id='Button7' /> </td> <td> <input type="button" id='Button8' /> </td> <td> <input type="button" id='Button9' /> </td> </tr> </table> <div style="position: absolute; bottom: 5px; right: 5px;"> <a href="https://www.jqwidgets.com/" alt="https://www.jqwidgets.com/"><img alt="https://www.jqwidgets.com/" title="https://www.jqwidgets.com/" src="https://www.jqwidgets.com/wp-content/design/i/logo-jqwidgets.png"/></a> </div> </body> </html>