按钮的格式不同。当用户单击按钮时,将显示一个新字段。我可以使用CSS来做到这一点吗?

另外,如何从form1跳转到form 2

这是我的代码:

   <form id="form1" action="#">
      <input type="button" onclick="form2">
   </form>
   <form id="form2">
       <input type="checkbox">
       <input type="button">
   </form>


另外,即使滚动窗口,如何将图像放置在网站中并保持其位置?

最佳答案

对于图像,使用position: fixed;



(function($) {
    $(document).ready(function() {
        $('#form1').click(function() {
            $(this).hide();
        });
    });
})(jQuery);


但是我真的不明白你为什么要这么做...

关于php - 复选框验证和 float 图像,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15981483/

10-17 02:05