用户注册登录框怎么移中间去啊。。_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:47:30
Original
3609 people have browsed it

本帖最后由 u012511498 于 2013-11-30 23:03:24 编辑

html css

这是我写的一个简单的登录界面,

我想:
1. 把登录块那儿加个外框,移到文字下面
2. 把"user__ID"和"password"都移到输入框内,作为提示
应该怎么做呢?要用到哪些知识?表示刚学了html和php,一点点的css还不太会运用。。

回复讨论(解决方案)

没人吗?

margin-left 和margin-right设为auto试试 给登陆的那个div

这个其实很简单的,只要添加一条

标签就能让其居中

把你登录的id和密码还有下边的按钮放到一个div里,给这个div设置margin:0 auto;就居中了。

这个其实很简单的,只要添加一条

标签就能让其居中 这个是html5的标签,兼容性不好,还是用div+css2吧。

谢谢各位,我最后根据同学推荐用了bootstrap模板。。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!