Python devops Development (15)----scripts

Source: Internet
Author: User

Content directory:

HTML supplement

Javascript

HTML supplement

1. Display label

The Inline-block property of display automatically takes 3px width

<span style= "Display:inline-block;width:80px;height:50px;background-color: #00a2ca" ></span><span Style= "display:inline-block;width:80px;height:50px;background-color:red;" ></span>

  

If you want to cancel this 3px pixel, you need to set the second span property to Float:left

2. IMG Tag

    • The IMG tag is bordered by default, and can be seen by IE browser, with chrome and Firfox not seeing borders
      • <body>    <div>        <div class= "Item" >            <a href= "http://www.etiantian.org" >                < IMG src= "2.jpg"/>            </a>        </div>    </div></body>
      • If you want to suppress the display of this border in IE, you need to define the Tag property of IMG In style border to 0
      • <style>        img{            border:0;        } </style>
    • The Imgalt property can customize what is displayed when a picture does not exist.
      • <body>    <div>        <div class= "Item" >            <a href= "http://www.etiantian.org" >                            </a>        </div>    </div></body>

        The effect is as follows:

3. iframe nested Other site tags

<Body><iframewidth=420pxHeight=330pxname=aaframeborder=0src=http://www.cctv.com></iframe><!--scrolling Indicates whether the page scroll bar is displayed, the optional parameter is auto, yes, no, and if omitted, the default is auto.  -</Body>
Demo

Python devops Development (15)----scripts

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.