我的保证金不起作用,为什么

时间:2016-10-08 11:45:16

标签: html css

为什么我的保证金属性不起作用?我希望使用class来处理边距,而不是html中的css。 这是https://jsfiddle.net/mhzhvfo2/

<div class="col span_1_of_12 margin_5_of_12">
 1 of 12
  </div>

2 个答案:

答案 0 :(得分:0)

这两项都超越了您的保证金。

final Map<String, Object> childCreation = new HashMap<>();

Log.d( TAG, "Encoded mail: " + encodedMail );

final DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child("sharedEvents").child(encodedMail);
Log.d( TAG, "Reference: " + ref );

//see http://stackoverflow.com/questions/36161508/get-path-of-the-firebase-reference
String path = ref.toString().substring(ref.getRoot().toString().length());
Log.d( TAG, "Path: " + path );

childCreation.put( path, "a value");
FirebaseDatabase.getInstance().getReference().updateChildren(childCreation);

您可以删除课程MainActivity: Remove manager: dGVzdEB0ZXN0LnRlc3Q= MainActivity: Encoded mail: dGVzdEB0ZXN0LnRlc3Q= MainActivity: Reference: https://xxxxx-development.firebaseio.com/sharedEvents/dGVzdEB0ZXN0LnRlc3Q%3D MainActivity: Path: /sharedEvents/dGVzdEB0ZXN0LnRlc3Q%3D 以解决此问题。

.col:first-child {
    margin-left: 0;
}
.col {
    display: block;
    float: left;
    margin: 0% 0 0% 0%;
}

答案 1 :(得分:0)

如果需要,您可以删除col

但相反,您也可以在!important类中添加.margin_5_of_12,以便忽略之前应用的规则并应用此类的规则。

.margin_5_of_12 {
margin-left: 41.66% !important;
}
相关问题