对drupal来说很新......我有一两个问题(NEW to drupal…I have a question or two)
我对这个Web开发人员的一些新事物(我真的很喜欢它!)。 我总是想让客户选择在整个登录系统设置中编辑他们的内容......我一直在听/读Drupal,看来这是我提供内容管理,提高工作效率,稳定代码的最佳选择,并且uh提高生产力。 :-)
问题:为什么“节点”访问页面(例如,节点?= 1)? 传统的index.php主页发生了什么,并且能够为您的页面命名。 我最近下载了Drupal并开始在我的本地服务器上运行它,但它有点令人困惑。
问题:我想要一些现有的项目
Drupal(集成/迁移/无论如何)。 是否有可能做到这一点? 如果是这样我怎么能这样做?问题:我可以在生产中使用哪些提示来提高生产率
并模拟正常的方式
发展?问题:我可以在1个Drupal安装下开发多个站点,还是必须创建多个Drupal
安装每个新项目/网站?
如果是这样的话?对于21个问题,很抱歉,Drupal的一些帮助文档令人困惑。 我很感激帮助。
Im sort of new to this web developer thing (I really enjoy it!). I always want to give clients the option to edit their content with the whole login system setup...I've been hearing/reading about Drupal and it seems that this is my best option to offer content management, increase productivity, stable code, and uh increase productivity. :-)
Question: Why are the pages accessed by "nodes" (Ex. /node?=1)? What happened to the traditional index.php homepages and being able to name your pages. I recently downloaded Drupal and started running it on my local server, but it was kind of confusing.
Question: I have some existing projects the I want to base off
Drupal (integrate/migrate/whatever). Is it possible to do this? If so how can I do this?Question: What tips can I use in production to increase productivity
and simulate the sort of normal way
of developing?Question: Can I develop multiple sites under 1 Drupal install or do I have to create multiple Drupal
installs for each new project/site?
If so how?Sorry for the 21 questions, some of the help documents from Drupal are confusing. I would appreciate the help.
原文:https://stackoverflow.com/questions/3776359
最满意答案
你可以在
img
和line-height
上使用vertical-align
,例如:.top { height: 150px; background-color: blue; } .container { float: right; line-height: 150px; } img { vertical-align: middle; }
<div class="top"> <div class="container"> <a href="#"> <img src="http://lorempixel.com/400/200/" alt="Smiley face" height="50" width="140"> </a> </div> </div>
you may use
vertical-align
onimg
andline-height
, example:.top { height: 150px; background-color: blue; } .container { float: right; line-height: 150px; } img { vertical-align: middle; }
<div class="top"> <div class="container"> <a href="#"> <img src="http://lorempixel.com/400/200/" alt="Smiley face" height="50" width="140"> </a> </div> </div>
相关问答
更多-
中心浮动列表(Center floated list)[2022-06-14]
无论屏幕大小如何,这将保持所有内容居中,并保留最小宽度的框。 另外,我从无序列表中删除了margin和padding ,这些列表略微偏离了中点。 小提琴 .blocks { width:100%; } .blocks-inner { width:80%; margin:0 auto; } .blocks ul { text-align:center; margin:0; padding:0; } .blocks li { display:inline-block ... -
浮动元素没有运气,因为它们不服从垂直对齐。 您可以使用display: table-cell以及vertical-align: middle ,这样可以完美地工作。 尽管您需要稍微修改HTML结构,然后将内容放在图像之前,反之亦然,具体取决于您希望内容和图像显示在前端的方式。 .container { display: table; } .content { width: 50%; display: table-cell; vertical-align: middle; } ...
-
要解决您的问题,您必须删除display: table; 并display: table-cell; vertical-align: middle; display: table-cell; vertical-align: middle; 并且必须添加: .thumbnail img { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; } 垂直居中你的图像。 本文 ...
-
div内的垂直中心(Vertical center inside div)[2021-03-05]
只需使用display:table-cell和display:table for parent。 在这里小提琴: http : //jsfiddle.net/6jnte8da/2/ Just use display:table-cell in conjunction with display:table for parent. Fiddle here: http://jsfiddle.net/6jnte8da/2/ -
你可以在img和line-height上使用vertical-align ,例如: .top { height: 150px; background-color: blue; } .container { float: right; line-height: 150px; } img { vertical-align: middle; }
浮动div的垂直对齐(Vertical alignment of a floated div)[2022-03-07]
浮动元素不能垂直对齐,您应该使用内联块,或者将行高设置为等于文本的图像高度。 还有一种方法是使用“display:table-cell” 内联块的示例: .wrapper{ width:250px; background-color:red; } #SmileImg{ height:100px; display: inline-block; vertical-align: middle; } .textwrapper{ displa ...只需添加display: table; 到#tabs-3 更新了演示 Just add display: table; to #tabs-3 Updated Demo尝试: 添加到包含图像的div参数: position: relative; 和图像: position: absolute; top: 50%; margin-top: -(half of image height)%; 应该工作! TRY: to add to div in which image is contained parameter: position: relative; and to the image: position: absolute; top: 50%; margin-to ...您可以使用table和table-cell 。 使用.clearfix div作为包装器,然后用.clearfix类中的另一个div将每个div包含在.cell 。 set .clearfix to display:table; 并设置.cell来display:table-cell;vertical-align:middle; 。 同时删除规则集.clearfix:after的.clearfix:after 的jsfiddle CSS: .clearfix { display:table; } . ...中心锚点与div中的图像(Center anchor with image in div)[2023-01-16]
添加position:relative对于您的包装器,然后将图像的CSS更改为: .anchor > img { height: 100px; width: 100px; position:absolute; margin:auto; top:0;right:0;bottom:0;left:0; } jsFiddle示例 Add position:relative to your wrapper and then change the image's CSS to: ...相关文章
更多- Drupal Forums instead of phpBB or vBulletin: A casestudy
- Becoming a data scientist
- 每日英语:Man Without a Country
- Become a Master Designer: Rule Three: Contrast, Contrast, Contrast
- 每日英语:Philippine Chapel Becomes a Medical Center
- Fading Like a Flower - Roxette
- [转]So You Want To Be A Producer
- a favorite song
- trouble is a friend
- 《宁皓网:Drupal 6 基础教程 第一部》(Drupal 6 Essential Training Part 1)修正完整版[压缩包]
最新问答
更多- 您如何使用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)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)