jquery-mobile页面中的边距

时间:2015-08-18 22:06:45

标签: css jquery-mobile

如何使用css在整个页面的左侧和右侧放置边距?

我尝试了各种方式,但我无法做到:jsfiddle.net/1dsvfudq /

1 个答案:

答案 0 :(得分:0)

你做得对,你错过了逗号:

.container { 
    padding: 50px;
    width: 400px;
    margin: 0 auto;
    font-family: arial;
    font-size: 13px;
    line-height: 20px;
}

.head {
    font-size: 20px;
    line-height: 24px;
    display: inline-block;
    text-decoration: none;
}

.label {
    background: #eee;
    line-height: 24px;
    font-size: 12px;
    padding: 0 5px;
    display:inline-block;
    vertical-align: top;
    margin-left: 5px;
}

.meta {
    color: grey;
}

添加它们并出现边距)