Generalizing INPUT fields cross

This question already has an answer here:

  • How to align checkboxes and their labels consistently cross-browsers 36 answers

  • There is some great code you should check out. It has a polyfill for older browsers, but it will make all of your form fields look pretty close. You can use just the CSS portion and it is still pretty awesome. It's called Formalize. It is not identical in every browser but it's pretty close.

    If you are worried about pixel perfect similarity you will have to use a javascript like Select2 or Chosen since select fields are usually the elements that vary the most between browsers. You could also take a look at Twitter Bootstrap. They already have a lot of work done for you. Good luck!

    链接地址: http://www.djcxy.com/p/41448.html

    上一篇: 如何使用CSS设计复选框?

    下一篇: 将INPUT字段泛化