1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- /*
- 主体样式:给宽不给高
- */
- /* 通配符选择器 */
- * {
- /* 无序列表默认样式 */
- list-style: none;
- /* a标签默认样式 */
- text-decoration: none;
- }
- .content {
- width: 960px;
- height: 100%;
- }
- /* 头部样式 */
- .head {
- width: 100%;
- height: 55px;
- overflow: hidden;
- }
- .logo {
- width: 105px;
- height: 100%;
- float: left;
- }
- .search {
- width: 555px;
- height: 100%;
- float: left;
- }
- .search .input {
- width: 377px;
- height: 24px;
- margin-left: 169px;
- margin-top: 13px;
- outline: none;
- }
- .login {
- width: 300px;
- height: 100%;
- float: left;
- }
- .directory {
- margin-left: 144px;
- }
- .login .directory .btn {
-
- width: 50px;
- height: 42px;
- background: #eee;
- color: blue;
- display: inline-block;
- margin-left: 17px;
- text-align: center;
- line-height: 42px;
- font-size: 14px;
- }
- /* 主体样式 */
- .main {
- width: 100%;
- height: 500px;
- background: #f00;
- }
- /* 导航栏 */
- .nav {
- width: 100%;
- height: 42px;
- line-height: 42px;
- background: #00f;
- }
- .nav ul {
- overflow: hidden;
- margin-left: -39px;
- }
- .nav ul li {
- float: left;
- margin-left: 21px;
- }
- .nav ul li a {
- color: #fff;
- font-size: 17px;
- }
- .nav ul li a:hover {
- color: #f00;
- }
- /* 页尾样式 */
- .footer {
- width: 100%;
- height: 100px;
- background: #00f;
- }
|