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>Perfect vertical centering of form elements</title> <style type="text/css"> *{padding:0; margin:0;} body{font:14px/1.231 Tahoma, Geneva, sans-serif; background-color:#D1D5E7;} label{cursor:pointer; vertical-align:middle;} input{vertical-align:middle; margin:5px;} .warp{ margin:100px 350px;} span{ vertical-align:middle; text-decoration:underline;} img{ vertical-align:middle; border:1px solid #CCF;_margin-bottom:1px;} p{font-size:14px;} h2{font-size:16px;} </style> </head> <body> <div class="warp"> <h2>Radio boxes and check boxes are very small and not easy to click, which causes confusion for many users and a poor user experience</h2> <p>Please see the perfect solution of [A touch of coolness]: Perfect vertical centering, click on the text to select it, shortcut key to select it, mouse over the text to show hand shape (implying clickable)</p> <input name="aaa" id="aaa" type="checkbox" value=""/> <label for="aaa">X×I am a perfect checkbox</label> <input name="ccc" id="ccc" type="checkbox" accesskey="2" value=""/> <label for="ccc">I support keyboard Alt+2 selection (<span>2</span>)</label> <input name="bbb" id="bbb" type="radio" value=""/><label for="bbb">X×I am a perfect radio button</label> <label for="fff">X×I am a perfect text box</label><input id="fff" type="text"/> <input name="eee" id="eee" type="checkbox" value=""/><span>Pictures can also be centered</span><img width="270" height="129" usemap="#mp" src="upload/2022/web/baidu_sylogo1.gif"/> </div> </body> </html> |
<<: MySQL slave library Seconds_Behind_Master delay summary
>>: Implementation steps for enabling docker remote service link on cloud centos
About password strength verification: [root@mysql...
The first step is to create a mysql container doc...
Prepare: MySQL 8.0 Windows zip package download a...
The explain command is the primary way to see how...
<br />"There are no ugly women in the w...
【question】 We have an HP server. When the SSD wri...
Table of contents step 1. Configure routing rules...
Preface Before MySQL 8.0, it was quite painful to...
This article shares with you how to use Vue to ch...
1. Environment version Docker version 19.03.12 ce...
The table is as follows: HTML source code Display...
Table of contents MySQL multi-version concurrency...
Detailed example of getting the maximum value of ...
This article refers to the work of 51CTO blog aut...
This article uses an example to illustrate the me...