Apex commandButton Styleclass not applicable -
i have 2 vf pages. 1 regular page, other 1 style page. style class 'button1' defined in style page can't applied commandbutton in regular page. investigate translated html code. style class of these commandbutton 'btn button1', not 'button1' define. why salesforce compiler add 'btn' it? thanks.
the regular 1 is:
<apex:page standardcontroller="account" standardstylesheets="false"> <apex:include pagename="{!$page.mystylepage}"/> <apex:form> <apex:commandbutton value="dismissed" styleclass="button1"/> <apex:commandbutton value="pursue" styleclass="button1"/> </apex:form> </apex:page>
the style page is
<apex:page id="mystylepage"> <style type="text/css"> .button1 { border: 1px; padding: 10px; margin-left: 50px; margin-right: 50px; } </style> </apex:page>
sf style overrides style, can change button
<input type="button" style="button1" title="pursue" />
Comments
Post a Comment