HTML:
<div id="outter">
<div id="left">
<div id="up">
This is the up div
</div>
<div id="down">
<h3>This is the down div</h3>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS:
#outter{
height: 400px;
background: white;
border: 1px solid #bfd2e1;
}
#left{
float: left;
margin-right: 0;
padding: 0;
}
#up{
width: 355px;
height: 50px;
border: 1px solid #ffe59f;
padding: 12px;
line-height: 16pt;
margin: 15px 0 0 15px;
}
#down{
float: left;
margin: 15px 0 0 15px;
width: 381px;
}
#down h3{
border: 1px solid #bfd2e1;
background-color: #edf6fe; …Run Code Online (Sandbox Code Playgroud) 我有两个divS IN同一行,div_left,div_right
我想div_right有固定宽度200像素,并left_div延伸至最大宽度和左页的高度,我怎么会写这与CSS?
# status.py
class Status(object):
@classmethod
def add(cls, title, kind, attachment):
self.db.set('title', title)
self.db.set('kind', kind)
self.db.set('attachment', attachment)
def add_text_status(title, text):
Status.add(title, 'text', {
'text': text
})
def add_photo_status(title, photos):
Status.add(title, 'photos', {
'photos': photos
})
def add_video_status(title, video_url):
Status.add(title, 'video', {
'url': video_url
})
...
# view.py
@app.route('/add')
def add_status(request):
title = request.get('title')
kind = request.get('kind')
if kind == 'text':
text = request.get('text')
status = add_text_status(title, kind, text)
elif kind == 'photos':
photo_ids = request.get('photo_ids')
photos = Photo.gets(photo_ids)
status = add_photo_status(title, …Run Code Online (Sandbox Code Playgroud)