temguo 直接奢华's Profile

Member since Jul 07, 2007, follows 0 people, 1 public groups, 82 public bookmarks (86 total).

More »
Tags

Recent Tags:
Top Tags:

More »
Recent Bookmarks and Annotations

  • ????????????????????????|??????|??????|????|??????|????|????|???? on 2009-08-26
    •     ????????????????????????????????????????????????????????????

          ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

          ??????

          ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

          ??????????

          ????????????????????????????????????????????????????

          ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

          ?????????

          ????????????????????????????????????????????

          ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

          ???????????

          ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

         ??????

          ?????????????????????????????????????????????????????????????

          ???????????????????????????????????????????????????????????

          ??????????????????????????????????????????????????????????????????????????????????????????????????????????!????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

          ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????

          ????????????????????????????????????????

          ?????????

          ????????????????????????????????????????????????????????????????????????????????????????????????????????????

          ???????????????????????????????????????

          ????????????????????????????????????????????????????????????????????????

          ??? ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

          ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

          ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

          ??????????????????????????????????????????????????????????????????????????

  • 50????CSS?? | ???? on 2009-08-26
  • ??? - Wikipedia on 2009-08-26
    • ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
  • TOM??-??? on 2009-08-26
    • ??? [12?22?-1?19?]
      ??????
      ??????
      ????????
      ???????
      ???????????
      ?????8?16?26?35
      ?CAPRICORN [12/22?1/19]
      ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????12/22?1/20????????????????????????????????????????????
      ???????????????????????????????????????????????????????????????
  • ??????????????????? ? ????? - ??? on 2009-08-26
    • ???????90%??????????????13???????????????????????????????????20%???
  • ????? WinCHM ???? - ???? - ITPUB?? - ???????????? on 2009-08-26
    • ????"0211110122010000110C"
  • Particletree » Rediscovering the Button Element on 2009-08-26
      • The Requirements

        1. They had to look like buttons.

        2. They had to look the same across browsers.

        3. The styles I used for button needed to also be used with ones I might use with links (since interaction in Wufoo is always initiated with either a Form Submission or an Ajax Call from a link, these things probably sit next to each other and I needed them to have the same visual weight).

        4. The markup needed to be flexible and easy to change for uses in lots of different situations.

        5. I should be able to use icons and colors effectively to pass information about the kind of interaction that would be taking place.

        With those challenges in place, I dove into the CSS and after solving some cross browser challenges, came up with the following (which you can also see all over Wufoo):

        The Results


        Nothing crazy. Simple, but effective. Now, what I love about this way of handling buttons is that I can use the 1000 icon arsenal from FAMFAMFAM to illustrate a ridiculous number of ideas and actions without having to generate something from Photoshop every single time I need something new. If we take a quick look at the markup, you?ll notice that the last two buttons up there are actually links:

        <div class="buttons">    <button type="submit" class="positive">        <img src="/images/icons/tick.png" alt=""/>         Save    </button>    <a href="/password/reset/">        <img src="/images/icons/textfield_key.png" alt=""/>         Change Password    </a>    <a href="#" class="negative">        <img src="/images/icons/cross.png" alt=""/>        Cancel    </a></div>

        The reason this is useful is because lots of actions in web applications are REST driven and so simply sending a user via a link to a specific URL will initiate something they need to do. Using styles that can work for both types of elements (links and buttons), gives us the flexibility to keep our means of interaction looking consistent and appropriate whether it?s being done with Ajax or a standard submission.

        Just a quick aside, you may wonder why I?ve left the alt tags blank in those icon images. It may come as a surprise to some that while alt attributes are required on every image, actually describing them is not. Empty alt attributes are completely valid and help screenreaders know which information to effectively ignore, saving your users precious time when they?re trying to find the next appropriate actionable item. Because the icons are actually superfluous, I?d rather not waste the user?s time hearing about the image I used to visualize what?s going on. They?ll just hear ?Submit? rather than ?Checkmark Submit?, which would actually make things a little confusing.

        The CSS

        For the most part, the CSS for styling these buttons are fairly straight forward. The hair-pulling inconsistencies across browsers results in the number of padding discrepancies below, but it?s nothing impossible and lucky for you, already figured out.

        /* BUTTONS */.buttons a, .buttons button{    display:block;    float:left;    margin:0 7px 0 0;    background-color:#f5f5f5;    border:1px solid #dedede;    border-top:1px solid #eee;    border-left:1px solid #eee;    font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;    font-size:100%;    line-height:130%;    text-decoration:none;    font-weight:bold;    color:#565656;    cursor:pointer;    padding:5px 10px 6px 7px; /* Links */}.buttons button{    width:auto;    overflow:visible;    padding:4px 10px 3px 7px; /* IE6 */}.buttons button[type]{    padding:5px 10px 5px 7px; /* Firefox */    line-height:17px; /* Safari */}*:first-child+html button[type]{    padding:4px 10px 3px 7px; /* IE7 */}.buttons button img, .buttons a img{    margin:0 3px -3px 0 !important;    padding:0;    border:none;    width:16px;    height:16px;}

        One thing that came up while working on this was the fact that there?s a rendering bug in Internet Explorer in regards to showing long buttons. You can read about it at Jehiah.cz, but it?s what?s responsible for some of the width and overflow declarations above.

        Adding Some Color

        In Wufoo, we made the hover color blue for neutral actions and used green and red appropriately for positive and negative connotations. The following are the styles we?ve created for dealing with buttons that are meant to show positive interactions like adding and saving and negative interactions like canceling and deleting. It?s a nice touch for us and obviously you can pick and choose to your liking.

        /* STANDARD */button:hover, .buttons a:hover{    background-color:#dff4ff;    border:1px solid #c2e1ef;    color:#336699;}.buttons a:active{    background-color:#6299c5;    border:1px solid #6299c5;    color:#fff;}/* POSITIVE */button.positive, .buttons a.positive{    color:#529214;}.buttons a.positive:hover, button.positive:hover{    background-color:#E6EFC2;    border:1px solid #C6D880;    color:#529214;}.buttons a.positive:active{    background-color:#529214;    border:1px solid #529214;    color:#fff;}/* NEGATIVE */.buttons a.negative, button.negative{    color:#d12f19;}.buttons a.negative:hover, button.negative:hover{    background:#fbe3e4;    border:1px solid #fbc2c4;    color:#d12f19;}.buttons a.negative:active{    background-color:#d12f19;    border:1px solid #d12f19;    color:#fff;}

  • AutoHide - ??????[Firefox ??] | ??? on 2009-08-26
    • ?????????FireFox??????????Tree Style Tab?

      ??????????????FireFox?????????????????????????????????? 

      ????FireFox???????????????????????????????????????????????????

      AutoHide???????????

      ???AutoHide?????????(F11)????????

  • ???????Firefox?? - ?? on 2009-08-26
      • ???????Firefox??

        Firefox??, ???? August 3rd, 2008

        ????????????????/??/??/??????

        ???????Firefox?????Firefox??????????????????????????????????????????????????????????Firefox???????????????????????????Firefox???IE???

        ??????????????Firefox?????????IE????????????????????????????????????

        • All-in-One Sidebar

        • Better Gmail 2 + Better GCal

        • Delicious Bookmarks

        • Download Statusbar

        • FireGestures

        • Google Toolbar

        • IE Tab

        • MeeTimer

        • PDF Download

        • Scrapbook

        ???????????????????????????????????????????????????????????????????

        ?????????????????Greasemonkey?Locationbar?NoScript?Taboo?Update Scanner?????????????

  • 45??????jQuery?? | ???? on 2009-08-26

More »
Bookmark Lists

More »
Groups

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo