Skip to content

Instantly share code, notes, and snippets.

View douban-sofa-machine.jsx
class FieldDisplay extends React.Component {
render() {
var labelDom;
if (typeof this.props.label !== 'undefined') {
labelDom = <div className="db-display-label" style={{float:'left', width:'100px'}}>{this.props.label}</div>
}
return (
<div className="'db-display" style={{clear:'left'}}>
{labelDom}
View douban-sofa-machine.css
#debug-nav {
height: 40px;
padding: 5px 10px;
background-color: #e5ebe4;
color: #037b82; width: 100%;
}