How to align check boxes (checkbox) and single-digit (radio) horizontally and vertically with the text
In today's project, a checkbox cannot be aligned with the text in the same line. A problem is found after the check. The default height and width of the checkbox and radio labels are both 13px, the font size used in the project is 12 PX. If the font size is adjusted to 14px, this problem does not exist. Therefore, the author sorted out several solutions based on the information found on the Internet.
First, let's take a look at the specific problem and the effect after the solution:
The specific solution code is as follows:
<Html>
Compatible browsers: chrome, firefox, ie8, ie7, ie6, safari
Note: 2nd, 5th, and 6th methods are recommended for individuals. Because css hack is not used in either of the three methods.
Articles you may be interested in
- Jquery checks whether checkbox is selected
- Js restrictions: Only English letters and numbers can be entered. Chinese characters and other special characters cannot be entered.
- Javascript checks whether the check box is selected
- Jquery obtains the checkbox selected values (one group and one)
- Url transfer of Chinese characters, solutions for special dangerous characters (for reference only) urldecode, base64_encode
- Jquery checks whether the check box is selected
- DIV layer that slides with the scroll bar (fixed to the DIV layer that does not disappear with browsing on the top of the page)
- Reasons why PHP adds a backslash before the quotation mark and how PHP removes the backslash, there are three ways to disable the php magic quotation mark