我将erb文件转换为苗条,结果显示了其地址而不是窗口中的图片,该如何解决?
.col-xs-12.right-content-block
.faces.slider-team-slick-js
- @development.each do |developer|
.col-xs-4
.flex-item.animated.fadeInDown.rectangle-and-text-hover.img-face
| , style='background-image: url(#{image_path(developer.image_url)});' >
.text
p.name= developer.name
.horizontal-line
p.specialization= developer.title
应该有一张图片代替文字。
更新。
我在这里帮助过
.col-xs-12.right-content-block
.faces.slider-team-slick-js
- @development.each do |developer|
.col-xs-4
.flex-item.animated.fadeInDown.rectangle-and-text-hover.img-face style="background-image: url(#{image_path(developer.image_url)})"
.text
p.name = developer.name
.horizontal-line
p.specialization= developer.title
答案 0 :(得分:0)
您可以将dependencies {
compile 'com.android.support:appcompat-v7:26.0.0'
compile 'com.android.support:design:26.0.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:support-v4:26.0.0'
}
替换为<group android:id="@+id/grpa">
<item
android:id="@+id/copyData"
android:icon="@drawable/copy"
android:orderInCategory="100"
android:title="@string/string_copy"
app:showAsAction="ifRoom">
</item>
</group>
<group android:id="@+id/grpb">
<item
android:id="@+id/pasteData"
android:title="@string/string_paste"
android:orderInCategory="101"
android:icon="@drawable/paste"
app:showAsAction="ifRoom">
</item>
</group>
<group android:id="@+id/grpc">
<item
android:id="@+id/action1"
android:orderInCategory="102"
android:title="@string/action_something"
app:showAsAction="never" />
</group>
然后键入以下行:
''