我有这段代码:
<div>
<form name='profileForm' id='profileForm' action='' method='get'>
<input type='submit' name='ProfileBtn' id='ProfileBtn' class='buttonC' value='My Profile' />
</form>
<br />
<form name='logoutForm' id='logoutForm' action='' method='get'>
<input type='submit' name='LogOutBtn' id='LogOutBtn' class='buttonC' value='Logout' />
</form>
</div>
Run Code Online (Sandbox Code Playgroud)
当我渲染上面时,"profileForm"没有出现(尽管profileBtn出现了).这种形式没有问题,这很奇怪,因为它们都很相似.
这可能是一个简单的问题,但我不知道问题是什么.
我刚刚使用Gtk3 for GUI开发了一个Python 2.7应用程序.我的问题是,我现在如何为Windows,Mac和Linux(可能是三个不同的安装程序)创建一个安装程序,以便我的最终用户轻松下载应用程序,而无需下载python和GTK等.
我以前从未从python脚本创建过安装程序.我听说有一些工具用于此目的(py2exe?pyinstaller?),但我不知道如何以及如何打包它们以便它能够使用Gtk3.
我试图从javascript中的函数更改td的"onclick"的值.我已经尝试了我能想到的一切,我在互联网上搜索过但没有任何效果,从下面的代码中解释,但问题是它正在执行我希望onclick的值而不是更改它.
<div align="center" id="bodyC">
<table width="800" height="410">
<td class="bodyCC">
<table id="MYtable" class="MYtable" border="0" width="100%" height="100%" cellpadding="50">
<td id="one" class="one" onclick=""></td>
<td id="two" class="two" onclick=""></td>
<td id="three" class="three" onclick=""></td>
</table>
</td>
</table>
</div>
function download()
{
<!-- this function is called when the "Download" button on the website's menu is pressed, and is soppused to change the "body" table so when the sells are clicked an alert will pop.-->
document.getElementById('one').onclick=alert("A..!");
document.getElementById('two').onclick=alert("B..!");
document.getElementById('three').onclick=alert("C..!");
}
Run Code Online (Sandbox Code Playgroud)
任何帮助?
ps没有错误.
appearance ×1
forms ×1
gtk ×1
gtk3 ×1
html ×1
javascript ×1
onclick ×1
python ×1
python-2.7 ×1