2014-02-24 104 views
0

我想这HTML格式转换成玉:我应该如何格式化这个Jade布局?

<div class="textItem"> 
    <div class="avatar"> 
     <img src="http://wowthemes.net/demo/biscaya/img/demo/avatar.jpg" alt="avatar"> 
    </div> 
    "How often have I said to you that when you have eliminated the impossible, whatever remains, however improbable, must be the truth?<span style="font-family:arial;">"</span><br/><b>Ralph G. Flowers </b> 
</div> 

我已经试过这种方法,但它试图打开文本到另一个标签:

.textItem 
    .avatar 
     img(src="http://wowthemes.net/demo/biscaya/img/demo/avatar.jpg" alt="avatar") 
    "How often have I said to you that when you have eliminated the impossible, whatever remains, however improbable, must be the truth?<span style="font-family:arial;">"</span><br/><b>Ralph G. Flowers </b> 

任何想法?

回答

1
doctype html 
html(lang="en") 
    head 
    body 
    .textItem 
    .avatar 
     img(src="http://wowthemes.net/demo/biscaya/img/demo/avatar.jpg" alt="avatar") 
     | How often have I said to you that when you have eliminated the impossible, whatever remains, however improbable, must be the truth? 
     span(style="font-family:arial") 
     br 
     | Ralph G. Flowers 
     br 

这应该给你我想你想要的。

+0

钉住它。谢谢! – drewwyatt