CSS Other tricks

Source: Internet
Author: User

  1. How do I make the layer appear on Falsh?

    Method:

    <param name="wmode" value="transparent" />

    Set the Wmode value of flash to transparent or opaque

  2. How do I insert flash on a page using the standard method?

    Method:

    <object id="flash-show" type="application/x-shockwave-flash" data="*.swf"><param name="movie" value="*.swf" /><param name="wmode" value="transparent" /></object>

    As for the width of the flash can be set in CSS

  3. How do I select a check box or a radio box when I point to text?

    Method 1:

    <input type="checkbox" id="chk1" name="chk" /><label for="chk1">选项一</label><input type="checkbox" id="chk2" name="chk" /><label for="chk2">选项二</label><input type="radio" id="rad1" name="rad" /><label for="rad1">选项一</label><input type="radio" id="rad2" name="rad" /><label for="rad2">选项二</label>

    This approach is supported by all major browsers

    Method 2:

    <label><input type="checkbox" name="chk" />选项一</label><label><input type="checkbox" name="chk" />选项二</label><label><input type="radio" name="rad" />选项一</label><label><input type="radio" name="rad" />选项二</label>

    This approach is more concise than Method 1, but IE6 and earlier browsers do not support

  4. How to switch between Standard mode and quirks mode under IE?

    IE6 trigger (with XML declaration before DTD declaration):

    <?xml version="1.0" encoding="utf-8"?><!DOCTYPE html>

    IE5.5 and earlier browser versions are parsed directly in quirks mode.

    Triggers for all IE versions (preceded by the DTD declaration with HTML comments):

    <!-- Let IE into quirks mode --><!DOCTYPE html>

    When there is no DTD declaration, all IE versions will also enter quirks Mode.

  5. How to distinguish between Display:none and Visibility:hidden?

    Method:

    The same is display:none and Visibility:hidden can be used to hide an element, the difference is that display:none in the hidden elements, the space is also removed, and Visibility:hidden just hide the content, Its placeholder space is still retained.
  6. How to set the IFRAME background transparency under IE?

    Method:

    Set the Tag property of the IFRAME element allowtransparency= "Allowtransparency" and set the body background color of the internal page of the IFRAME to transparent. However, this will cause some other problems under IE, such as: Set the transparent IFRAME will not cover the Select

CSS Other tricks

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.