网页按钮使用的各种代码(Various code used by web buttons).docVIP

  • 10
  • 0
  • 约7.54千字
  • 约 19页
  • 2017-10-07 发布于河南
  • 举报

网页按钮使用的各种代码(Various code used by web buttons).doc

网页按钮使用的各种代码(Various code used by web buttons)

网页按钮使用的各种代码(Various code used by web buttons) That button is in the WINDOWIN study with the most basic components of a control in general, such as in a variety of programming languages and applications are not button participation, so also in web design, through the button to complete the tasks, the following will be fully explained using techniques and application examples of the button. the basic use of buttons general visual Web authoring tools, has a convenient button to add the tool, can be directly added in place of button, if you use the manual page making method, then used the following source code for the button, the onclick decided to press the button: form, method=, POST P input type= button name= B1 value= Button /p Onclick /p /form If you use only a single button, you can omit the form tag and use only the simple button code to save the page space occupied by the button: P input type= button name= B1 value= Button /p Onclick /p two, button foreground and background control When most people use buttons, they use the default white button with black text. In fact, the background and foreground of the button can be changed at will. Please see the following code: form, name=, highlight P align= center input type= Button value= color change button Style= background-color: RGB (255,0,0); Color: RGB (2552550,0) Onclick /p /form Where the background-color controls the background color, the color button, the foreground color; three, the picture background of the button - button can not only modify the foreground and background colors, and can use the background image, the following code demonstrates respectively fixed background image effects and dynamic background effect, dynamic effect in the mouse on the button, the button background is another image background, and then restore the original left mouse the background, in the code below mainbb1.jpg and mainbb2.jpg respectively for the two image file: script ! -- If (document.imag

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档