CSS various practical tips

Source: Internet
Author: User

A list of other skills and experiences (* The default operating environment for the following instances is Standard mode):

  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 "/>! [] (*.jpg) </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" > Option one </label><input type= "checkbox" id= "Chk2" name= "chk"/><label for= "Chk2" > Option two </label><input type= "Radio" id= "Rad1" Name= "rad"/><label for= "rad1" > Option one </label>< Input type= "Radio" id= "Rad2" Name= "rad"/><label for= "rad2" > option two </label> this way all major browsers support 

    Method 2:

    <label><input type= "checkbox" Name= "chk"/> Option one </label> <label><input type= "checkbox" Name= "chk"/> Option two </label><label><input type= "Radio" name= " rad "/> Option one </label><label><input type=" Radio "Name=" rad "/> Option two </label> this mode is more concise than Method 1, However, 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
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.