Javascript,c#,css,html Essays

Source: Internet
Author: User

Double and single quotation marks

The double quotation marks in the statement will search for the contents of the quotation mark whether there is a variable, the output value, the original content is not output. Therefore, it is more efficient to use single quotation marks than double quotation marks when outputting pure strings, because the process of retrieving is omitted.

     $a = 1;     echo $a; 1     echo "$a";//1     echo ' $a ';//$a

  

Continue

jump out of the current code block

      for (i=0;i<=10;i++)       {              if (i==3) continue;      This example iterates over the value: 3             x=x + "The number is" + i + "<br>";        }

Grammar:

variablename = (condition)? value1:value2

      Greeting= (visitor== "PRES")? " Dear president ":" Dear ";  If the variable visitor value is "PRES", assign the value "Dear president" to the variable greeting, otherwise assign the value "Dear"

Background and Background-color

Background can set background color, background image, positioning, etc.

Background-color can only set background color

Background-color: #aaa;   Only the background color is changed, at this time there is a default background:repeat;background: #aaa;                       Equivalent to setting the background:no-repeat at the same time;
{background-color: #aaa; background:no-repeat;} = = {background: #aaa}

Javascript,c#,css,html Essays

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.