【HTML/CSS】表单美化

本文探讨如何使用HTML和CSS进行表单美化,包括单选按钮和多选框的交互效果设计。同时,提到了在尝试用JavaScript增强功能时遇到的问题及尚未解决的挑战。
摘要由CSDN通过智能技术生成

表单美化单选按钮

<!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>表单美化单选按钮</title>
<style>
*{padding:0;margin:0;}
.type{width:400px;height:32px;border:1px solid #0F0;margin:30px auto;}

.type a{text-decoration:none;color:#666;}
body{font:12px/22px 微软雅黑;}
.type dl{height:32px;line-height:32px;padding-left:8px;}
.type dt{float:left;}
dd{float:left;margin:0 10px  0 10px;}
.type dd a{display:block;position:relative;padding-left:33px;}
a:hover{color:#F00;text-decoration:underline;}
b{display:block;width:20px;height:20px;background:#999;position:absolute;top:6px;left:0;border-radius:50%;
	padding:1px;
	border:1px solid;
	border-radius:50%;
	background:#666;
	background-clip:content-box;}
a:hover b{background:#0F0;}
.selected b{background:#F00;}
</style>

</head>
<body>
<div class="type">
<!--<form action="#" method="post" name="typeform">
	<lable>配送类型:</label>
    <input type="radio" name="type" checked="checked"/><label>全部</label>
    <input type="radio" name="type"/><lable>京东配送</lable>
    <input type="radio" name="type"/><label>第三方配送</label>
</form>-->
&
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值