📄 s_buttonstyle.html
字号:
<TABLE CELLPADDING=5 CELLSPACING=0 BORDER=0 WIDTH=100%>
<TR><TD style="text-align: justify;">
With the addition of button styles in phpQ 2.1, you can now customize every aspect of the survey. No longer are you restricted to using the default button styles for "Submit", "Next" and "View Results". With the introduction of the <B>Submit Button Style</B>, <B>Results Button Style</B> and <B>Next Button Style</B> you can now control all buttons that users may view. The following fields will help you to customize these buttons:<BR><UL>
<LI><B>Text</B> - When used with an <B>Image</B>, this text will become the ALT tag for your button. Otherwise, the text that you type in here (such as 'Submit' or 'Next') will become the label for your button.<BR><BR>
<LI><B>Width</B> and <B>Height</B> - When used with an <B>Image</B>, these fields will control the width and height of your image, as attributes in the tag. If you are not using an image, we will apply correct CSS definitions to your text button to make it this size. These fields are defined in pixels.<BR><BR>
<LI><B>Image</B> - If you are not a fan of boring looking submit buttons, you can now use any image on your web site as the next, submit or results button! Simply enter the URL to your image in this box and it will be used as the button.
</UL>
Please note that the <B>Next Button Style</B> will only appear if you have a multi-page survey and the <B>Results Button Style</B> will only appear if you have the <B>Survey Results</B> field set to 'Make survey results public (include button on survey)'. Furthermore, if you do have public results and a multi-page survey, the <B>Next Button Style</B> will also be used on the page-by-page view of your public results.<BR><BR>
<B>Advanced CSS Trick</B><BR>
Some of you may be wondering why we left out CSS customization of the button when it is readily available for all other areas of phpQ. We felt that the Text/Size/Image fields were more useful on a day to day basis for most users' needs. However, we have a little trick for those of you who want to customize your button CSS.<BR><BR>
When you leave the <B>Image</B> portion of your Button Style blank, the <B>Text</B> field will be included in the VALUE="" portion of your <input> tag. Normally, if you put 'Submit' as the <B>Text</B>, this would result in:<BR><BR>
<INPUT TYPE=submit VALUE="Submit"><BR><BR>
If you were instead, however to enter into the <B>Text</B> field something like 'Submit" STYLE="color: red;' you would achieve the following:<BR><BR>
<INPUT TYPE=submit VALUE="Submit" STYLE="color: red;"><BR><BR>
It is important to note that you need to include a double quote after the text you wish to have appear on your button and then leave off the last double quote from the end of your STYLE definition. Once you have the basic format down, it is easy to add any styles you want! If you have any further questions on this, simply contact chumpsoft support and we will be happy to help.
</TD></TR>
</TABLE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -