0

0

请问这个布局应该怎么改_html/css_WEB-ITnose

php中文网

php中文网

发布时间:2016-06-24 12:17:18

|

1228人浏览过

|

来源于php中文网

原创


现在的效果是这样的,“用户名”和“密码”的div在输入框的右边,应该放在输入框的左边,请问应该怎么调整。

  


html,body,p,ul,li,h1,input,form {	margin: 0;	padding: 0;}body,input {	font: 12px Verdana,Arial,Helvetica;}body {	background: white;}.container {	width: 800px;	margin: 20px auto 0;	min-height: 500px;}.mask {	position: absolute;	z-index: 10;	left: 0;	top: 0;	width: 100%;	height: 100%;	background: #FFFFFF;	opacity: 0.6;	filter: alpha(opacity=60);}.login_container {	float: right;}.login_box {	position: relative;	z-index: 11;	width: 305px;	margin-right: 4px;	padding: 20px;	border: 1px solid #ACC3E4;	background: #EDF5FF;	-moz-box-shadow: 2px 2px 3px rgba(0,0,0,0.15);	-webkit-box-shadow: 2px 2px 3px rgba(0,0,0,0.15);	border-radius: 5px;	-webkit-border-radius: 5px;}.login_box h1 {	color: #274571;	font-size: 16px;}.login_box .login_operate {	padding: 12px 0 20px;}.login_operate .username,.login_operate .password,.login_operate .about_password,.login_operate .login_submit {	position: relative;	width: 305px;	padding: 5px 0;	z-index: 2\9;}.login_operate .login_submit .login_cancel {	margin-left: 12px;}.login_operate .username {	height: 38px;	position: relative;	z-index: 10\9;}.login_operate .about_password {	padding: 4px 0;	z-index: 1\9;}.login_operate .vfcodeinput {	height: 55px;	padding-bottom: 3px;}.login_box .txt {	position: relative;	width: 295px;	height: 34px;	line-height: 34px;	padding: 0 4px;	color: #494949;	border: 1px solid #9DADC5;	font-size: 20px;	background: transparent;	outline: none;	border-radius: 3px;	-webkit-border-radius: 3px;	-webkit-transition: -webkit-box-shadow .1s linear;	-moz-transition: box-shadow .1s linear;}.login_box .alias {	width: 174px;	padding-right: 125px;}.login_domain {	position: absolute;	top: 6px;	*top: 7px;	right: 1px;	width: 112px;	height: 31px;	line-height: 32px;	padding: 0 0 3px 8px;	border: none;	border-left: 1px solid #D5DEEC;	color: #4D4D4C;	font-size: 18px;	z-index: 1;	background: url(images/login_ico_selector.gif) no-repeat scroll 105px -25px #FBFBFB;	border-radius: 0 3px 3px 0;	-webkit-border-radius: 0 3px 3px 0;	box-shadow: -1px 0 2px rgba(0,0,0,0.09);}.active .login_domain,.login_domain: hover {	background-position: 105px 11px;	background-color: #f7fafe;}.login_box .txt_default,.login_box .txt_dim {	position: absolute;	top: 6px;	left: 1px;	width: 289px;	height: 34px;	padding: 0 7px;	line-height: 34px;	font-size: 14px;	color: #8B9096;	background: url(images/login104474.png) no-repeat scroll -1px -97px white;	border-radius: 3px;	-webkit-border-radius: 3px;}.login_operate .username_immutable {	padding: 0;	color: #494949;	font-weight: bold;	background: none;	font-size: 16px;}.login_box .txt_dim {	color: #DCDDDF;}.login_box .txt: focus {	border: 1px solid #9BBBDA;	box-shadow: 0 0 5px rgba(110,189,222,0.5);	-webkit-box-shadow: 0 0 5px rgba(110,189,222,0.5);}.login_box .captips {	position: absolute;	top: 43px;	left: 0;	z-index: 20;	padding: 1px;	border: 1px solid;	border-color: #dbc492 #b49366 #b49366 #dbc492;	background: #fdf6aa;}.login_box .vfcodeinput input,.login_box .vfcodeinput label {	width: 148px;	height: 34px;	line-height: 34px;	letter-spacing: 2px;	font-size: 26px;}.login_box .vfcodeinput label {	font-size: 18px;	line-height: 34px;	width: 142px;}.login_box .verifytip,.login_box .vfcode_change {	padding: 10px 0 3px;}.login_operate .login_submit {	clear: both;}.login_box .login_btn_wrapper {	display: inline-block;	width: 82px;	height: 30px;	height: 28px\9;	margin-top: 9px;	border: 1px solid;	border-color: #6B9F11 #54850A #386601;	background: url(images/login104474.png) repeat-x #67A00D;	background-position: 0 -1px\9;	-webkit-transition: -webkit-box-shadow .1s linear;	-moz-transition: box-shadow .1s linear;	border-radius: 3px;	-webkit-border-radius: 3px;}.login_box .login_btn_wrapper_disabled {	display: inline-block;	width: 82px;	height: 30px;	height: 28px\9;	margin-top: 9px;	border: 1px solid;	border-color: #6B9F11 #54850A #386601;	background: url(images/login104474.png) repeat-x #67A00D;	background-position: 0 -1px\9;	border-radius: 3px;	-webkit-border-radius: 3px;	opacity: 0.7;	filter: alpha(opacity=70);}.mail_intro {	width: 400px;	margin-left: 16px;}.mail_intro h1 {	display: none;}.mail_intro ul {	line-height: 20px;}.mail_intro ul li {	margin-left: 16px;	list-style: disc outside;}


回复讨论(解决方案)

html,body,p,ul,li,h1,input,form {	margin: 0;	padding: 0;}body,input {	font: 12px Verdana,Arial,Helvetica;}body {	background: white;}.container {	width: 800px;	margin: 20px auto 0;	min-height: 500px;}.mask {	position: absolute;	z-index: 10;	left: 0;	top: 0;	width: 100%;	height: 100%;	background: #FFFFFF;	opacity: 0.6;	filter: alpha(opacity=60);}.login_container {	float: right;}.login_box {	position: relative;	z-index: 11;	width: 305px;	margin-right: 4px;	padding: 20px;	border: 1px solid #ACC3E4;	background: #EDF5FF;	-moz-box-shadow: 2px 2px 3px rgba(0,0,0,0.15);	-webkit-box-shadow: 2px 2px 3px rgba(0,0,0,0.15);	border-radius: 5px;	-webkit-border-radius: 5px;}.login_box h1 {	color: #274571;	font-size: 16px;}.login_box .login_operate {	padding: 12px 0 20px;}.login_operate .username,.login_operate .password,.login_operate .about_password,.login_operate .login_submit {	position: relative;	width: 305px;	padding: 5px 0;	z-index: 2\9;}.login_operate .login_submit .login_cancel {	margin-left: 12px;}.login_operate .username {	height: 38px;	position: relative;	z-index: 10\9;}.login_operate .about_password {	padding: 4px 0;	z-index: 1\9;}.login_operate .vfcodeinput {	height: 55px;	padding-bottom: 3px;}.login_box .txt {	position: relative;	width: 295px;	height: 34px;	line-height: 34px;	padding: 0 4px;	color: #494949;	border: 1px solid #9DADC5;	font-size: 20px;	background: transparent;	outline: none;	border-radius: 3px;	-webkit-border-radius: 3px;	-webkit-transition: -webkit-box-shadow .1s linear;	-moz-transition: box-shadow .1s linear;	float:right;}.login_box .alias {	width: 174px;}.login_domain {	position: absolute;	top: 6px;	*top: 7px;	left:0px;	width: 112px;	height: 31px;	line-height: 32px;	padding: 0 0 3px 8px;	border: none;	border-left: 1px solid #D5DEEC;	color: #4D4D4C;	font-size: 18px;	z-index: 1;	background: url(images/login_ico_selector.gif) no-repeat scroll 105px -25px #FBFBFB;	border-radius: 0 3px 3px 0;	-webkit-border-radius: 0 3px 3px 0;	box-shadow: -1px 0 2px rgba(0,0,0,0.09);}.active .login_domain,.login_domain: hover {	background-position: 105px 11px;	background-color: #f7fafe;}.login_box .txt_default,.login_box .txt_dim {	position: absolute;	top: 6px;	left: 1px;	width: 289px;	height: 34px;	padding: 0 7px;	line-height: 34px;	font-size: 14px;	color: #8B9096;	background: url(images/login104474.png) no-repeat scroll -1px -97px white;	border-radius: 3px;	-webkit-border-radius: 3px;}.login_operate .username_immutable {	padding: 0;	color: #494949;	font-weight: bold;	background: none;	font-size: 16px;}.login_box .txt_dim {	color: #DCDDDF;}.login_box .txt: focus {	border: 1px solid #9BBBDA;	box-shadow: 0 0 5px rgba(110,189,222,0.5);	-webkit-box-shadow: 0 0 5px rgba(110,189,222,0.5);}.login_box .captips {	position: absolute;	top: 43px;	left: 0;	z-index: 20;	padding: 1px;	border: 1px solid;	border-color: #dbc492 #b49366 #b49366 #dbc492;	background: #fdf6aa;}.login_box .vfcodeinput input,.login_box .vfcodeinput label {	width: 148px;	height: 34px;	line-height: 34px;	letter-spacing: 2px;	font-size: 26px;}.login_box .vfcodeinput label {	font-size: 18px;	line-height: 34px;	width: 142px;}.login_box .verifytip,.login_box .vfcode_change {	padding: 10px 0 3px;}.login_operate .login_submit {	clear: both;}.login_box .login_btn_wrapper {	display: inline-block;	width: 82px;	height: 30px;	height: 28px\9;	margin-top: 9px;	border: 1px solid;	border-color: #6B9F11 #54850A #386601;	background: url(images/login104474.png) repeat-x #67A00D;	background-position: 0 -1px\9;	-webkit-transition: -webkit-box-shadow .1s linear;	-moz-transition: box-shadow .1s linear;	border-radius: 3px;	-webkit-border-radius: 3px;}.login_box .login_btn_wrapper_disabled {	display: inline-block;	width: 82px;	height: 30px;	height: 28px\9;	margin-top: 9px;	border: 1px solid;	border-color: #6B9F11 #54850A #386601;	background: url(images/login104474.png) repeat-x #67A00D;	background-position: 0 -1px\9;	border-radius: 3px;	-webkit-border-radius: 3px;	opacity: 0.7;	filter: alpha(opacity=70);}.mail_intro {	width: 400px;	margin-left: 16px;}.mail_intro h1 {	display: none;}.mail_intro ul {	line-height: 20px;}.mail_intro ul li {	margin-left: 16px;	list-style: disc outside;}

CSS code?1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939……


成这样的了,原来有框的,现在没有了


注意下高跟宽 很容易修改的 。

改.login_domain 的border

border: 1px solid #9DADC5;

加个display:block;然后浮动

相关文章

HTML速学教程(入门课程)
HTML速学教程(入门课程)

HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!

下载

本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热门AI工具

更多
DeepSeek
DeepSeek

幻方量化公司旗下的开源大模型平台

豆包大模型
豆包大模型

字节跳动自主研发的一系列大型语言模型

通义千问
通义千问

阿里巴巴推出的全能AI助手

腾讯元宝
腾讯元宝

腾讯混元平台推出的AI助手

文心一言
文心一言

文心一言是百度开发的AI聊天机器人,通过对话可以生成各种形式的内容。

讯飞写作
讯飞写作

基于讯飞星火大模型的AI写作工具,可以快速生成新闻稿件、品宣文案、工作总结、心得体会等各种文文稿

即梦AI
即梦AI

一站式AI创作平台,免费AI图片和视频生成。

ChatGPT
ChatGPT

最最强大的AI聊天机器人程序,ChatGPT不单是聊天机器人,还能进行撰写邮件、视频脚本、文案、翻译、代码等任务。

相关专题

更多
go语言 注释编码
go语言 注释编码

本专题整合了go语言注释、注释规范等等内容,阅读专题下面的文章了解更多详细内容。

2

2026.01.31

go语言 math包
go语言 math包

本专题整合了go语言math包相关内容,阅读专题下面的文章了解更多详细内容。

1

2026.01.31

go语言输入函数
go语言输入函数

本专题整合了go语言输入相关教程内容,阅读专题下面的文章了解更多详细内容。

1

2026.01.31

golang 循环遍历
golang 循环遍历

本专题整合了golang循环遍历相关教程,阅读专题下面的文章了解更多详细内容。

0

2026.01.31

Golang人工智能合集
Golang人工智能合集

本专题整合了Golang人工智能相关内容,阅读专题下面的文章了解更多详细内容。

1

2026.01.31

2026赚钱平台入口大全
2026赚钱平台入口大全

2026年最新赚钱平台入口汇总,涵盖任务众包、内容创作、电商运营、技能变现等多类正规渠道,助你轻松开启副业增收之路。阅读专题下面的文章了解更多详细内容。

76

2026.01.31

高干文在线阅读网站大全
高干文在线阅读网站大全

汇集热门1v1高干文免费阅读资源,涵盖都市言情、京味大院、军旅高干等经典题材,情节紧凑、人物鲜明。阅读专题下面的文章了解更多详细内容。

73

2026.01.31

无需付费的漫画app大全
无需付费的漫画app大全

想找真正免费又无套路的漫画App?本合集精选多款永久免费、资源丰富、无广告干扰的优质漫画应用,涵盖国漫、日漫、韩漫及经典老番,满足各类阅读需求。阅读专题下面的文章了解更多详细内容。

67

2026.01.31

漫画免费在线观看地址大全
漫画免费在线观看地址大全

想找免费又资源丰富的漫画网站?本合集精选2025-2026年热门平台,涵盖国漫、日漫、韩漫等多类型作品,支持高清流畅阅读与离线缓存。阅读专题下面的文章了解更多详细内容。

19

2026.01.31

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号