图像板CSS的盒子模型(Box model for a Image board CSS)
你好我和女孩我过去几周一直在使用Image board作为一个学习项目,并且遇到了一些关于CSS样式的问题,主要是我应该如何设计Post及其内容。 我想要构建的东西看起来像这样。
现在,我这样做的方法是让一个div持有一个img,另一个div使用post_content和一个标题。 并将其设置为Display:flex,row
这样做的一个问题是post / header div会增加容器post div并使文本在屏幕上运行。 我尝试通过给帖子和img固定大小20%/ 80%来解决这个问题。 这很有效,直到我调整页面大小,img和div之间的差距随着我的页面大小而变大。
这里有一个示例帖子,任何帮助都会很棒,而且总是不好回答任何问题。
#flex_content { display: flex; } #flex_post { width: 80%; } #post_header { margin-bottom: 4px; } #thumbnail { width: 10em; height: auto; } #post { background-color: #333 !important; float: left; width: 100%; } #post { height: auto; width: 100%; border: 2px solid #F4E8AF; margin-top: 5px; margin-bottom: 5px; padding: 5px; word-wrap: break-word; } #img { width: 20% } #post_contnet{ width:80%; }
<div id='post'> <div id="header"> <a href="images/1455249371 ">1455249371.png </a> <br /> </div> <div id="flex_content"> <div id="img"> <img id='thumbnail' src="images/1455249371 "> </div> <div id='flex_post'> <div id="reply_header"> <b>Anonymous</b> 10:56 <ahref='chan.php?post=83'>>>No.83</a> [<a href='thread.php?thread=67'>Reply</a>] <br /> </div> <div id='post_contnet'> [Transparent] <br /> </div> </div> </div> </div>
Hello guys and girls I Have been working on a Image board as a learning project for the past few week and have run into a bit of a snag with CSS styling mostly in how I should style the Post and it content. What I'm wanting to build would look something like this.
For now the way I'm doing this is by having a div hold a img and another div with the post_content and a header inside of that. and setting it to Display:flex,row
A problem with this would be that the post/header div would out grow the container post div and would make text run off screen. I tried fixing this by giving the post and the img a fixed size 20%/80%. this worked well till i resize the page and the gap between the img and the div grew larger as i size up the page.
here is a sample post any help would be awesome and as always ill be around to answer any questions.
#flex_content { display: flex; } #flex_post { width: 80%; } #post_header { margin-bottom: 4px; } #thumbnail { width: 10em; height: auto; } #post { background-color: #333 !important; float: left; width: 100%; } #post { height: auto; width: 100%; border: 2px solid #F4E8AF; margin-top: 5px; margin-bottom: 5px; padding: 5px; word-wrap: break-word; } #img { width: 20% } #post_contnet{ width:80%; }
<div id='post'> <div id="header"> <a href="images/1455249371 ">1455249371.png </a> <br /> </div> <div id="flex_content"> <div id="img"> <img id='thumbnail' src="images/1455249371 "> </div> <div id='flex_post'> <div id="reply_header"> <b>Anonymous</b> 10:56 <ahref='chan.php?post=83'>>>No.83</a> [<a href='thread.php?thread=67'>Reply</a>] <br /> </div> <div id='post_contnet'> [Transparent] <br /> </div> </div> </div> </div>
原文:https://stackoverflow.com/questions/35447000
满意答案
尝试使用
execution
而不是task
,我有startTask相同的问题,但我不知道它是否会与seviceTaskTry to use
execution
insteadtask
, I had the same problem with startTask, but I'm not sure if it will work with seviceTask
相关问答
更多获取工作流任务Alfresco的NodeRef(Get NodeRef of a workflow task Alfresco)
如何更改sharepoint工作流任务状态?(How to alter sharepoint workflow task status?)
无法访问工作流服务任务中的“任务”对象(Not able to access 'task' object in workflow service task)
如何防止在Youtrack工作流程中关闭打开的任务?(How to prevent open task to be closed in Youtrack workflow?)
工作流设计模式结合任务模式?(Workflow Design pattern combined with Task Pattern?)
如何在sharepoint工作流中显示任务平铺(How to display a Task Tile in sharepoint workflow)
检查Object是否为Task或Task (Check if Object is Task or Task)
从任务<>获取对象(Get object from Task<>)
在没有任务对象的情况下等待所有任务线程(Waiting on All Task Threads without having the Task Object)
获取当前运行的任务(Get current running Task)
相关文章
更多css盒子模型
编写统一、符合习惯的CSS的原则
css常用属性
css选择器使用
求教一个 table的css
CSS样式
按钮样式
ServletOutputStream cannot be resolved to a type
She’s Not Carrying A Handbag
CSS基础视频教程-尚学堂视频教程
最新问答
更多您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
在计算机拍照在哪里进入
使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
单页应用程序:页面重新加载(Single Page Application: page reload)
在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!