如何在封面图片下方放置文字?(How to put text below the cover image?)
我试图达到以下效果。 看起来像背景的图像放在页面的前60%。 如果图像不成比例,则应保持正确的宽高比。
在此图像之后,其他一些文字会出现
我在上半场取得了成绩
#fullcover{ position: absolute; background-image: url(img); top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; max-height: 60%; }
但问题是我的文字现在隐藏在我的图像背后。 我怎么能把它正好放在下面? JsFiddle就在这里 。
对不起,首先不包括这个:我宁愿不使用html,身体100%。
I am trying to achieve the following effect. An image that looks like a background is placed in the top 60% of the page. If the image is unproportional, it should keep correct aspect ratio.
After this image some other text goes.
I achieved the first half with
#fullcover{ position: absolute; background-image: url(img); top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; max-height: 60%; }
but the problem is that my text is now hiding behind my image. How can I put it exactly below? JsFiddle is here.
Sorry for not including this in the first place: I would rather not use html, body 100%.
相关文章
更多HttpClient PUT请求示例
网络挖掘技术——text mining
Full-Text Search in ASP.NET using Lucene.NET
C#中Image.FromFile()的用法
java.text.DecimalFormat 的问题
Hadoop海量put时出现的socket超时导致put失败解决方案
Solr官方文档系列——Text Analysis
Django and full-text search
如何将图片和文字同时分享到微信
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!