Alignment issues like type="radio" and type="checkbox", tested browser: ie7+/firefox8.0 Principle: Set the first font in font-family to Verdana font. The test code is as follows: Copy code The code is as follows:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Method for perfect vertical center alignment of form element input and text-123WORDPRESS.COMwebjx.com</title> <style type="text/css"> body {font:12px/24px verdana;} ul {list-style:none;} input,label { vertical-align:middle;} </style> </head> <body> <ul> <li><input type="radio" /><label>Contract for the Beneficiary</label></li> <li><input type="checkbox" /><label>Contract for beneficiary</label></li> <li><input type="radio" /><label>Microsoft</label></li> <li><input type="checkbox" /><label>Microsoft</label></li> </ul> </body> </html> |
<<: CSS scroll bar style modification code
>>: Refs and Ref Details in Vue3
Table of contents 1. Draw a circle 2. Circle move...
Apache Arrow is a popular format used by various ...
Because li is a block-level element and occupies ...
CSS3 Patterns Gallery This CSS3 pattern library s...
Original code: center.html : <!DOCTYPE html>...
One day, the leader put forward a requirement to ...
Table of contents 1. Installation 2. Import into ...
When a website is maliciously requested, blacklis...
①. How to use the alias (CNAME) record: In the do...
Newbie, record it yourself 1. Install supervisor....
After installing Docker on the Linux server, Pull...
On some websites, you can often see some pictures...
Table of contents 1. Node.js and Vue 2. Run the f...
Preface innodb_data_file_path is used to specify ...
I believe that students who have learned about th...