html css有感_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:37:54
Original
1088 people have browsed it

placeholder:是输入框内部的提示语。css3可用

div布局问题

display:inline-block;可以实现div横向排列和设置div的大小(一般单纯设置inline是无法设置其大小的)。

float:right可以使div靠右显示。

text-align:center;文字水平居中显示。

line-height:行高;实现文字的垂直居中显示。


通过调节 margin或者padding实际高度实现居中。

通过使用position:relative 然后设置left或者right等位置信息实现居中显示。


Related labels:
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