从ios中的epub获取封面图片(fetch Cover Image from epub in ios)
我想在阅读表中显示epub文件的书籍封面图像。 在我的iOS应用程序中,我为epub文件添加了“Open In”支持。 因此,当我导航到我的书阅读应用程序时,我想首先在书架上显示书籍的封面图像然后想要加载该书。 请帮我从ios app中的epub book中获取封面图片。
I want to display Book Cover Image of epub file in my Reading table. In my iOS application I have added "Open In" support for epub files. So when i navigate to my book reading app I want to show book's cover image in shelf first and then want to load that book. Please help me to fetch Cover Image from epub book in ios app.
原文:https://stackoverflow.com/questions/34545838
满意答案
您可以将
col-sm-6
更改为col-xs-6
(它将适用于x小屏幕和小屏幕)然后删除
col-lg-4
因为它不需要(类col-md-4
适用于从中等到所有更大的尺寸,除非另有说明)完成后,你可以简单地在最后一列添加一个偏移量,如下所示:
class="col-xs-6 col-xs-offset-3 col-md-4 col-md-offset-0"
基本上,如果
xs
偏移3列(然后将其居中),它将删除中等或更高屏幕的偏移量。见下面的演示
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> <div class="row"> <div class="col-xs-6 col-md-4"> <figure class="box-1"> <img class="services-imgs" src="http://lorempixel.com/300/300" alt="rehab" /> <figcaption class="figcaption"><a href="serviços.html">Reabilitação Vestibular</a> </figcaption> </figure> </div> <div class="col-xs-6 col-md-4"> <figure class="box-1"> <img class="services-imgs" src="http://lorempixel.com/300/300" alt="drenagem" /> <figcaption class="figcaption"><a href="serviços.html">Fisioterapia Estética</a> </figcaption> </figure> </div> <div class="col-xs-6 col-xs-offset-3 col-md-4 col-md-offset-0"> <figure class="box-1"> <img class="services-imgs" src="http://lorempixel.com/300/300" alt="traumato-ortopédica" /> <figcaption class="figcaption"><a href="serviços.html">Fisioterapia Traumato-Ortopédica</a> </figcaption> </figure> </div> </div>
You can change
col-sm-6
tocol-xs-6
(it will apply to x-small and small screens)Then remove the
col-lg-4
as it is not needed (the classcol-md-4
applies from medium to all bigger sizes, unless specified differently)Having done that, you can simply add an offset to the last column like this:
class="col-xs-6 col-xs-offset-3 col-md-4 col-md-offset-0"
Basically, if
xs
offset it by 3 columns (which then centers it) and it removes the offset for medium or higher screens.See demo below
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> <div class="row"> <div class="col-xs-6 col-md-4"> <figure class="box-1"> <img class="services-imgs" src="http://lorempixel.com/300/300" alt="rehab" /> <figcaption class="figcaption"><a href="serviços.html">Reabilitação Vestibular</a> </figcaption> </figure> </div> <div class="col-xs-6 col-md-4"> <figure class="box-1"> <img class="services-imgs" src="http://lorempixel.com/300/300" alt="drenagem" /> <figcaption class="figcaption"><a href="serviços.html">Fisioterapia Estética</a> </figcaption> </figure> </div> <div class="col-xs-6 col-xs-offset-3 col-md-4 col-md-offset-0"> <figure class="box-1"> <img class="services-imgs" src="http://lorempixel.com/300/300" alt="traumato-ortopédica" /> <figcaption class="figcaption"><a href="serviços.html">Fisioterapia Traumato-Ortopédica</a> </figcaption> </figure> </div> </div>
相关问答
更多Bootstrap /基础堆栈行/列(Bootstrap/Foundation stacking rows/columns)
bootstrap网格 - 3列和2行分成2列和3行(bootstrap grid - 3 columns and 2 rows into 2 columns and 3 rows)
没有行的bootstrap列比行填充更多的列(bootstrap columns without rows padded more than columns with rows)
将Bootstrap行和列与其对应的字段对齐(Align Bootstrap rows and columns with its corresponding fields)
嵌套的引导行和列(Nested bootstrap rows & columns)
如何在两个Bootstrap列之间直接添加两行?(How to add two rows straight between two Bootstrap columns?)
带Bootstrap的行和列(Rows and columns with Bootstrap)
两行两列流体页面布局bootstrap(Two rows two columns fluid page layout bootstrap)
Bootstrap 3列到2行(Bootstrap 3 columns to 2 rows)
Bootstrap从3列到2列,同时保留行(Bootstrap go from 3 columns to 2 whilst preserving rows)
相关文章
更多C#中Image.FromFile()的用法
《iOS 5核心框架》扫描版[PDF]
ios获取ip地址
尚学堂ios视频教程
浅谈iOS与社交化网络
微信在IOS7下无法分享图片
iOS设备的越狱方法
iOS设备的越狱方法
IOS-Social.framework
IOS高访微信聊天对话界面(sizeWithFont:constrainedToSize和stretchableImageWithLeftCapWidth的使用)
最新问答
更多获取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),本站将尽快处理。谢谢合作!