Bootstrap CSS Layout Code _javascript Tips

Source: Internet
Author: User

Bootstrap provides three ways to code display: inline code

1. Use element shows single-line inline code

Inline code is primarily about setting the background color of the code element and its inner text color.

Usage
<code><body></body></code>

//source code
{
 padding:2px 4px;
 font-size:90%;
 Color: #c7254e;
 Background-color: #f9f2f4;
 border-radius:4px;
}

2. Use element Displays user input code

element contains content that indicates that the content requires a user's keyboard input, so it is generally set to the effect of input, usage and code similar

Usage
<pre>
<article>
   
 
SOURCE
kbd {
 padding:2px 4px;
 font-size:90%;
 Color: #fff;
 Background-color: #333;
 border-radius:3px;
 -webkit-box-shadow:inset 0-1px 0 rgba (0, 0, 0,.);
     Box-shadow:inset 0-1px 0 rgba (0, 0, 0,.);


3. Use

Element new multiple lines of code block, the code needs to be shown as a separate block element or the code has multiple lines, then you should use the tag.

Usage
<pre>
<article>
   
 

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.