How to use the CSS features of MX 2004

Source: Internet
Author: User
Css

Today to introduce you to the question about CSS, I hope you learn how to use CSS.

  Step 1:

Create a dynamic problem bar on the scene, set instance name output, set to multiline.

   Step 2:

Input the following in the first frame:

var myStyle = new Textfield.stylesheet ();
var txt = "<p class= ' C1 ' >www.webjx.com 1</p><p class= ' C2 ' >www.webjx.com"; //Note the class here, he will render it according to the way you set it in your CSS file
mystyle.load ("Style.css");
Mystyle.onload = function (loaded) {
if (loaded) {
Output.stylesheet = MyStyle;
Output.text = txt;
} else {
Output.text = "CSS file not found!_!";//css Load not successful
}
};

  Step 3:

Open Notepad, enter the following code to save as STYLE.CSS, and Flash files in the same directory

. c1 {
Font-family:arial, Helvetica, Sans-serif;
font-size:18px;
Font-weight:bold;
Color: #000000;
}

. c2 {
Font-family:arial, Helvetica, Sans-serif;
font-size:24px;
Font-weight:bold;
Color: #FF6600;
}

  Step 4:

Publish and test, you need to use HTML to see ... Otherwise it will show that CSS cannot be loaded ...:)



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.