原文链接: https://salesforce.stackexchange.com/questions/5462/required-field-mark-red-vertical-bar-not-coming
1.使用VF标签展示
<apex:pageBlock ><apex:pageBlockSection><apex:pageBlockSectionItem><apex:outputPanel><div class="requiredInput"><div class="requiredBlock"></div><apex:inputText value="{!numberOfRowToRemove}"/></div></apex:outputPanel></apex:pageBlockSectionItem></apex:pageBlockSection>
</apex:pageBlock>
2.使用Html展示*号
选择关系: <span style="color: red;font-size: 18px;">*</span>