10.16.2008

div+css - Firefox和IE浏览器兼容问题

水平居中,Firefox使用margin-left: auto; margin-right: auto; IE6 使用text-align: center;
垂直居中,Firefox中使用display: table-cell; vertical-align: middle;可以实现div垂直居中,而IE6中则需要借助IE6中css的特点实现垂直居中。
!important标记,Firefox支持!important标记,IE6忽略!important标记,!important需要放在前面才能起作用
手形鼠标指针,使用cursor: pointer;
padding的尺寸,在Firefox中padding是计算在width之外的,而IE6是计算在width之内的
margin的尺寸,在IE6中带有float样式的元素的margin尺寸计算有误,需要借助padding和!important标记实现兼容

使用word-wrap设置自动折行, 仅对IE有效

  • 在Firefox下会丢失左侧的圆点

    Internet Explorer的CSS参考资料, http://msdn2.microsoft.com/en-us/library/ms531209.aspx

    用CSS实现cellSpacing属性效果, border-spacing: 10px; border-spacing: expression(this.cellSpacing=10);

    padding-right在IE6下导致抖动

  • 盗版微软Windows XP每小时黑屏的解决办法

    这两天,关于微软将启动Windows正版增值计划(简称“WGA”)和Office正版增值计划(简称“OGA”)的消息充斥着网络,看来微软继对番茄花园的洪磊下“毒手”之手之后,开始把触须伸向广大盗版用户了。大家尤其关心的是盗版微软Windows XP将一小时黑屏一次这个消息, 这对于我们这些习惯于使用盗版Windows XP(其实我的笔记本有正版的Windows vista,但还是不如Windows XP实用)系统的人来说,确实影响不小,虽然黑屏不会对电脑造成任何损害,但想想正玩得开心的时候出现下面的场景,实在不是什么让人开心的事。

    但是,我一直不担心这个问题,因为,我相信英勇的人民会在关键时刻发挥充分的想象力和超强的破解能力,果不其然,微软预计20日正式启动这个正版验证计划,而现在,解决的办法就已经出来了。

    方法一:拒绝安装正版验证补丁。微软再厉害,也不可能在几年之前就预留了正版验证的后门,要实现正版验证,就需要补丁来完成这个任务,所以,第一个方法就是从源头上拒绝微软的探子。具体操作为:关 闭windows自动更新,使用360安全卫士等第三方工具的更新功能,在更新补丁之前,注意看看补丁的介绍,目前Windows正版认证计划(WGA) 的补丁代号为kb905474,其更新日期为2008.9.23,版本为1.8.0031.9,还需要留意Office正版增值计划(OGA)的认证补 丁,确保做到不下载,不安装。

    方法二:使用命令破解。如果很不幸,你已经在不知不觉中安装了Windows正版认证计划(WGA)或者是Office正版增值计划(OGA)的认证补丁,也不是没有办法,具体操作为:任 务栏选择:开始-运行-输入regedit回车,在左边栏中找到HKEY_LOCAL_MACHINE\SOFTWARE\Miscrosoft \Windows NT\CurrentVersion\Winlogon\NotifyWgaLogon项,将整个WgaLogon项删除即可。

    最后,还是要立一下牌坊:

    1.本文所列解决办法整理自网络,没有亲自实践,使用者后果自负;

    2.本文属技术探讨性文章,并非鼓励使用盗版,欢迎大家花银子使用正版Windows XP操作系统。

    I got new apple today !!!

    I have over than 10 years experience use PC. but today, It will be turn over. cos, I 've got a new apple. hahaha!


    This is my baby's detail


    Intel Core 2 Duo Processor
    Experience improved energy efficiency, expanded wireless connectivity, and amazing battery life with the 45nm Penryn series Intel Core 2 Duo T8300 processor, which has a 2.40 GHz processor speed, super-fast 800 MHz front-side bus (FSB), and a large 3 MB L2 cache. (An L2, or secondary, cache temporarily stores data; and a larger L2 cache can help speed up your system's performance. The FSB carries data between the CPU and RAM, and a faster front-side bus will deliver better overall performance.)

    The new hafnium-infused circuitry--which reduces electrical current leakage in transistors--conserves even more energy, giving you more time away from the wall outlet. With a substantial 3 MB of shared L2 cache, data and instructions can be kept close to the two processor cores, greatly increasing performance and allowing the entire system to work more efficiently. And, because the processor cores share the L2 cache, either can use the entire amount if the other happens to be idle.

    Hard Drive and Memory
    The 160 GB Serial-ATA (SATA) hard drive (5400 RPM) quickens the pace with a higher speed transfer of data--akin to FireWire and USB 2.0. The 2 GB of PC5300 DDR2 RAM (two SO-DIMMs of 1024 MB) have an industry-leading 667 MHz speed, and the RAM capacity can be increased to 4 GB.

    Wireless Connectivity
    The built-in 802.11n wireless networking provides up to five times the performance and twice the range of 802.11g, but it's also backward-compatible with 802.11a/b/g routers, enabling you to communicate with the a wide variety of Wi-Fi resources. It works seamlessly with the new AirPort Extreme with 802.11n. Use the built-in Bluetooth wireless technology to connect to your PDA or cell phone, synchronize addresses, or download pictures from your cell phone. You can also use a wireless headset for iChat audio chats and VoIP calls as well as quickly share files with a colleague.

    Display and Graphics
    Whether you're working on a Keynote presentation or watching a movie before you catch a flight, every document, video, and photo on your MacBook will look sharp on the glossy 13.3-inch widescreen display. With pixel-perfect 1280-by-800 resolution, it's great for viewing and working with media. Video is powered by the Intel Graphics Media Accelerator X3100, which provides 144 MB of DDR2 SDRAM shared with main memory. It features Intel Clear Video Technology, which delivers outstanding video playback with sharper image quality, increased clarity, and enhanced visual quality of interlaced content on progressive displays.

    Video Conferencing with Built-in iSight
    Artfully placed in the display bezel is an iSight camera, which enables easy video conferencing as well as allows you to snap pictures of yourself and create video podcasts. Using the iChat AV application, video conferencing is integrated into your iChat buddy list, so initiating a video conference is a breeze. iChat also lets you hold audio chats with up to 10 people and provides high-quality audio compression and full-duplex sound so conversation can flow naturally. For video podcasting, you can record a short clip using the iSight camera, then use iWeb to create a video blog entry or post your GarageBand-recorded podcast.

    Other Features

    • 8x slot-loading SuperDrive with the following write speeds: 8x DVD±R; 4x DVD±R DL (double layer); 4x DVD±RW; 24x CD-R; 10x CD-RW
    • Mini-DVI port for video output (VGA adapter and mini-DVI to DVI adapter sold separately)
    • Built-in stereo speakers and omnidirectional microphone
    • Combined optical digital audio input/audio line in
    • Combined optical digital audio output/headphone out
    • Two USB 2.0 ports, one FireWire 400 port
    • Built-in full-size keyboard with 78 (U.S.) or 79 (ISO) keys, including 12 function keys, 4 arrow keys (inverted "T" arrangement), and embedded numeric keypad
    • Solid-state scrolling trackpad for precise cursor control; supports two-finger scrolling, tap, double-tap, and drag capabilities
    • Kensington cable lock slot
    • Meets ENERGY STAR requirements
    • Measures 12.78 x 8.92 x 1.08 inches (WxDxH) and weighs 5 pounds



    Connect to your network, a desktop monitor and all your peripherals with two USB 2.0, one FireWire, one DVI video output, and one Gigabit Ethernet.



    Preloaded with Leopard, you'll enjoy enhanced productivity and a clutter-free desktop (thanks to the redesigned 3-D Dock with Stacks).
    Preloaded with Leopard and iLife '08
    The biggest Mac OS X upgrade ever, the Mac OS X 10.5 Leopard operating system features over 300 new features, including:

    • Time Machine, an effortless way to automatically back up everything on a Mac
    • A redesigned Finder that lets users quickly browse and share files between multiple Macs
    • Quick Look, a new way to instantly see files without opening an application
    • Spaces, an intuitive new feature used to create groups of applications and instantly switch between them
    • A brand new desktop with Stacks, a new way to easily access files from the Dock
    • Major enhancements to Mail and iChat
    Leopard's new desktop includes the redesigned 3-D Dock with Stacks, a new way to organize files for quick and easy access with just one click. Leopard automatically places web, e-mail and other downloads in a Downloads stack to maintain a clutter-free desktop, and you can instantly fan the contents of this and other Stacks into an elegant arc right from the Dock. The updated Finder includes Cover Flow and a new sidebar with a dramatically simplified way to search for, browse and copy content from any PC or Mac on a local network.

    Time Machine lets you easily back up all of the data on your Mac, find lost files and even restore all of the software on their Mac. With just a one-click setup, Time Machine automatically keeps an up-to-date copy of everything on the Mac. In the event a file is lost, you can search back through time to find deleted files, applications, photos and other digital media and then instantly restore the file.

    The MacBook also comes with the iLife '08 suite of applications that make it easy to live the digital life. Use iPhoto to share entire high-res photo albums with anyone who's got an e-mail address. Record your own songs and podcasts with GarageBand. Break into indie filmmaking with iMovie and iDVD. Then take all the stuff you made on your MacBook and share it on the web in one click with iWeb.

    Included Software
    Mac OS X v10.5 Leopard (includes Time Machine, Quick Look, Spaces, Spotlight, Dashboard, Mail, iChat, Safari, Address Book, QuickTime, iCal, DVD Player, Photo Booth, Front Row, Xcode Developer Tools); iLife '08 (includes iTunes, iPhoto, iMovie, iDVD, iWeb, GarageBand); Microsoft Office 2004 for Mac Test Drive; iWork '08 (30-day trial)

    What's in the Box
    MacBook, 60W MagSafe Power Adapter, AC wall plug, and power cord, lithium-polymer battery, install/restore DVDs, printed and electronic documentation