CSS Modify the Style of Drop-down Box

  • Last update:  2020-12-16
  • I. Overview

    1.1 Requirement

    How to change the font color, font size, background color and button style of the drop-down box in the parameter pane? Just follow the steps below.

     

    1.2 Solution

    Use CSS to change the font color, font size, background color and button style for the drop-down box.

    II. Sample

    2.1 Write CSS codes

    Create a new TXT file, name it drop-down-box.css and click Save. Input the following CSS codes:

    .fr-trigger-btn-up{
         background-color: black;
    }
    .fr-trigger-btn-over{
         background-color: black;
    }
    .fr-trigger-btn-down{
         background-color: #303030;

    .fr-combo-list-item{
         color: white;
         background-color: black;
         font-size: 14px;

    .fr-combo-list{
         border:none ; 

    .fr-combo-selected{
         background-color: #292929;
         border-color: red; 

    .fr-combo-list-item-noselect{
          color: red !important; 
    }

    Note

    .fr-trigger-btn-up: Class name of the Drop-down Button

    background-color: Set the background color to black, or set 6-digit hexadecimal numbers. Use these codes to change drop-down button colors.

    .fr-trigger-btn-over,down : Set background colors on mouseover and mouseout

    .fr-combo-list-ltem: Color, background color and font size of the drop-down list

    .fr-combo-list: set no external border and none border line

    .fr-combo-selected: Set background color on mouse hover

    .fr-combo-list-item-noselect:  If you want to highlight non-selected items in the drop-down list, you can set the highlight color as you need. Here we set them to red and important represents the highest priority.


    2.2 Reference CSS file

    Save the edited CSS file “drop-down-box.css” to a location under \webapps\webroot\help\css. Open the template and click [Template]>[Web Attributes] >[Reference CSS].

    Note

    Change styles and colors as you need.


    2.3 Preview

    Click [Page Break Preview] and the preview effects are shown as follows:

    III. Download the template

    Attachment List


    Theme: Secondary Development
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy