Markdown and Bootstrap are combined to implement Image Adaptive attributes,

Source: Internet
Author: User

Markdown and Bootstrap are combined to implement Image Adaptive attributes,

Let's talk about the basic concepts and advantages of Markdown.

Markdown is a markup language that can be written in a common text editor. Through simple markup syntax, Markdown can make the common text content have a certain format.

Markdown is a lightweight markup language with many advantages. It is widely used by more and more writers. Do not be confused by the mark or language. The Markdown syntax is very simple. There are no more than 10 commonly used markup symbols. Compared with the more complex HTML markup language, Markdown is very lightweight and does not require much learning cost, once you are familiar with this syntax rule, it will have a permanent effect.

Advantages of using Markdown

Focus on your text content rather than typographical styles and write with peace of mind.

Easily export HTML, PDF, and its own. md files.

Pure text content, compatible with all text editors and word processing software.

You can modify the version of your article at any time, without having to create several file versions like the word processing software.

Readable, intuitive, and low learning cost.

Markdown is a good markup language and is increasingly popular as the editor syntax. Bootstrap is a front-end framework.The question is :! [Alt] (url), usually converted to html on the page. How can I add the auto-adaptive attributes of the Bootstrap image to the image?

For example:

 

Just use js:

<scripttype="text/javascript">$(".content img").addClass('img-responsive');</script>

Don't forget to add:

<metaname="viewport" content="width=device-width, initial-scale=1">

In this way, images can be scaled automatically on the cell phone screen without affecting the Adaptive Layout of Bootstrap .. The img-responsive attribute is actually the attribute that adds block and max-width: 100% to the image.

The above section describes the knowledge of combining Markdown and Bootstrap to implement Image Adaptive attributes. I hope it will help you!

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.