文本框怎么写
代码书写格式
<input type="text"/>; 最简单的
如果你还需要更好看一些的,还可以写一些css样式
例如:
css样式
如果还有什么不懂,还提问我,希望我的回答,能帮到你
2. 怎么在文本框上写什么内容就提示什么内容<script language= "javascript">
<!--
function aa()
{
alert(document.form.a1.value);
}
//-->
</script>
<form name= "form">
<input type= "text" name= &qu长担拜杆之访瓣诗抱涧ot;a1">
<br>
<input type= "button" value= "onclick" onclick= "aa();">
</form>
要的是这个不?
3. JAVA输入和输出文本框怎么写,求解答import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JTextField;
public class XXFrame extends JFrame implements ActionListener
{
private JTextField name = new JTextField("someone");
private JTextField text = new JTextField();
private JButton button = new JButton("输入");
public XXFrame()
{
super("一个测试框框");
name.setBounds(40, 40, 200, 20);
button.setBounds(260, 40, 100, 20);
text.setBounds(40, 110, 200, 20);
this.setLayout(null);
this.setBounds(200, 200, 400, 400);
this.add(name);
this.add(button);
this.add(text);
this.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(-1);
}
});
button.addActionListener(this);
this.setVisible(true);
}
@Override
public void actionPerformed(ActionEvent e)
{
if (e.getSource() == button)
{
text.setText(name.getText());
}
}
public static void main(String[] args)
{
new XXFrame();
}
}