从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
2023-08-31 22:08

满意答案

您可以将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 to col-xs-6 (it will apply to x-small and small screens)

Then remove the col-lg-4 as it is not needed (the class col-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。 我们只需要一行六格。 这是因为Bootstrap 会将多余的单元格包装到新的行中 。 类col-xs-6的块从12列中取6。 它恰好是屏幕宽度的一半。 这个课程的作品,直到一个更宽的屏幕的条件开始行动。 当屏幕宽度为992px或更宽时,类col-sm-4的块占用屏幕宽度的三分之一。 请检查结果。 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/boots...

bootstrap网格 - 3列和2行分成2列和3行(bootstrap grid - 3 columns and 2 rows into 2 columns and 3 rows)

根据所需顺序制作另一个网格,以获得额外的小屏幕,并使用Bootstrap的响应式实用程序显示/隐藏两个网格。 例如: <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossori...

没有行的bootstrap列比行填充更多的列(bootstrap columns without rows padded more than columns with rows)

您不需要将它们分成多行 - 只需在它们周围放置一个单行元素就可以解决填充问题。 只有两个col-sm-6列彼此相邻的空间,所以无论如何,以下两col-sm-6将成对出现。 (列可能有一些额外的顶部/底部边距,或者 - 外部行的填充可能需要添加才能看起来很好。) You don't need to divide them up into multiple rows - just putting one single row element around them should take care o...

将Bootstrap行和列与其对应的字段对齐(Align Bootstrap rows and columns with its corresponding fields)

您需要将两个1组合在一列中,而不是连续使用1,2和3。 所以这样的事情: <div class="col-md-4> <p>One</p> <input id="Text1" type="text" placeholder="one" /> </div> <!--insert other columns here--> Rather than having 1, 2, and 3 in a row, you'll need to put both 1s together in a col...

嵌套的引导行和列(Nested bootstrap rows & columns)

我不认为你应该嵌套行。 此外,您应该将行放在容器中。 (另请参阅: Bootstrap 3 Grid,我需要一个容器吗? ) 以下代码似乎可以解决问题: .fix-result {padding-right:20px;border: 1px solid #0359cf; margin-bottom:20px;} .fix-result-info { color: #0359cf;text-transform: uppercase; text-align: center;} .fix-resul...

如何在两个Bootstrap列之间直接添加两行?(How to add two rows straight between two Bootstrap columns?)

如果要像图像一样进行设计,则必须遵循以下说明: ------------:------------------- ----------------- ------------------------------- | <hr> | TEXT | | Middle Div | | Text | <hr> | -------------------------------- ----------------- ----------...

带Bootstrap的行和列(Rows and columns with Bootstrap)

你有不需要的结束div。 <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" /> <div class="section"> <div class="container"> <div class="row"> <div class="col-md-6"> <img src="https://s3.am...

两行两列流体页面布局bootstrap(Two rows two columns fluid page layout bootstrap)

布局本身很容易获得。 这里的问题是您希望图像在不同的屏幕尺寸和布局上如何? 你想要他们裁剪...... #my_section .row>[class^=col-] { height: 50vh; } #my_section .row>[class^=col-] { background: transparent center center no-repeat; background-size: cover; } <link rel="stylesheet" href="h...

Bootstrap 3列到2行(Bootstrap 3 columns to 2 rows)

您可以将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.go...

Bootstrap从3列到2列,同时保留行(Bootstrap go from 3 columns to 2 whilst preserving rows)

你很亲密,你使用一个包装<div class="row">元素就有了正确的想法。 你需要的只是clearfix元素,在某些断点值(xs, sm, md, lg)可见: <div class="row"> <div class="col-md-4 col-xs-6"> <div class="body"> 1. Multi<br>line<br>content </div> </div> <div class="col-...

相关文章

更多

C#中Image.FromFile()的用法

谁能告诉我这个方法的具体用法我是这样写的Image.FromFile(&quot;1.jpg&quot ...

《iOS 5核心框架》扫描版[PDF]

中文名: iOS 5核心框架 作者: (美)Shawn Welch 译者: 鲁成东 ...

ios获取ip地址

进来接微信支付,后台要传ip地址,so~ 首先要导这些头文件 1 #include &lt;s ...

尚学堂ios视频教程

C语言课程简介 本C语言入门视频教程由郭崇智主讲,主要讲了c语言程序设计的基础篇,比如C语言的数 ...

浅谈iOS与社交化网络

CHENYILONG Blog ...

微信在IOS7下无法分享图片

家里老大的iphone5在WWDC后第一时间升级了IOS7. 整体的UI风格和功能都很喜欢, 偶尔的c ...

iOS设备的越狱方法

最近公司的事情很忙,在开发一个类似于微信的App,经常加班,所以也没有时间去更新微信公众账号的内容了。 ...

iOS设备的越狱方法

本文转载至http://www.cnblogs.com/easonoutlook/p/3280232. ...

IOS-Social.framework

1.使用前 需要导入Social.framework 框架 2.实例代码(新浪微博为例) - (IBA ...

IOS高访微信聊天对话界面(sizeWithFont:constrainedToSize和stretchableImageWithLeftCapWidth的使用)

大家好,百忙之中,抽出点空,写个微博,话说好久没写。 最近项目中有碰到写类似微信聊天界面上的效果,特整 ...

最新问答

更多

获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)

我用Google搜索了一个解决方案。 “EnumDisplayModeProvider”是我自己设置网站的各种模式的枚举。 public EnumDisplayModeProvider GetDisplayModeId() { foreach (var mode in DisplayModeProvider.Instance.Modes) if (mode.CanHandleContext(HttpContext)) {

如何通过引用返回对象?(How is returning an object by reference possible?)

这相对简单:在类的构造函数中,您可以分配内存,例如使用new 。 如果你制作一个对象的副本,你不是每次都分配新的内存,而是只复制指向原始内存块的指针,同时递增一个也存储在内存中的引用计数器,使得每个副本都是对象可以访问它。 如果引用计数降至零,则销毁对象将减少引用计数并仅释放分配的内存。 您只需要一个自定义复制构造函数和赋值运算符。 这基本上是共享指针的工作方式。 This is relatively easy: In the class' constructor, you allocate m

矩阵如何存储在内存中?(How are matrices stored in memory?)

正如它在“熵编码”中所说的那样,使用Z字形图案,与RLE一起使用,在许多情况下,RLE已经减小了尺寸。 但是,据我所知,DCT本身并没有给出稀疏矩阵。 但它通常会增强矩阵的熵。 这是compressen变得有损的点:输入矩阵用DCT传输,然后量化量化然后使用霍夫曼编码。 As it says in "Entropy coding" a zig-zag pattern is used, together with RLE which will already reduce size for man

每个请求的Java新会话?(Java New Session For Each Request?)

你是如何进行重定向的? 您是否事先调用了HttpServletResponse.encodeRedirectURL()? 在这里阅读javadoc 您可以使用它像response.sendRedirect(response.encodeRedirectURL(path)); The issue was with the path in the JSESSIONID cookie. I still can't figure out why it was being set to the tomca

css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)

我认为word-break ,如果你想在一个单词中打破行,你可以指定它,这样做可以解决问题: .column { word-break:break-all; } jsFiddle演示。 您可以在此处阅读有关word-break属性的更多信息。 I think word-break, with which you can specify if you want to break line within a word, will do the trick: .column { word-break

无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)

我认为您忘记在分类时间内缩放输入图像,如train_test.prototxt文件的第11行所示。 您可能应该在C ++代码中的某个位置乘以该因子,或者使用Caffe图层来缩放输入(请查看ELTWISE或POWER图层)。 编辑: 在评论中进行了一次对话之后,结果发现在classification.cpp文件中错误地删除了图像均值,而在原始训练/测试管道中没有减去图像均值。 I think you have forgotten to scale the input image during cl

xcode语法颜色编码解释?(xcode syntax color coding explained?)

转到: Xcode => Preferences => Fonts & Colors 您将看到每个语法高亮颜色旁边都有一个简短的解释。 Go to: Xcode => Preferences => Fonts & Colors You'll see that each syntax highlighting colour has a brief explanation next to it.

在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)

你考虑过第三方拼写检查吗? 您可以将在C#中开发的自定义WinForms控件插入访问数据库吗? VB6控件怎么样? 如果你能找到一个使用第三方库进行拼写检查的控件,那可能会有效。 Have you considered a third party spell checker? Can you insert a custom WinForms controls developed in C# into an access database? What about a VB6 control? If

从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)

我有同样的问题,因为我在远程服务器上有两个图像,我需要在每天的预定义时间复制到我的本地服务器,这是我能够提出的代码... try { if(@copy('url/to/source/image.ext', 'local/absolute/path/on/server/' . date("d-m-Y") . ".gif")) { } else { $errors = error_get_last(); throw new Exception($err

从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))

我不确定我完全明白你在说什么。 你能编辑你的帖子并包含你正在做的Subversion命令/操作的特定顺序吗? 最好使用命令行svn客户端,以便容易为其他人重现问题。 如果您只是想获取文件的旧副本(即使该文件不再存在),您可以使用如下命令: svn copy ${repo}/trunk/moduleA/file1@${rev} ${repo}/trunk/moduleB/file1 其中${repo}是您的存储库的URL, ${rev}是您想要的文件的版本。 这将恢复该文件的旧版本,包括最高版本