- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经通读了 screen support关于 Android 的部分并查看了 stackoverflow 上的其他帖子,但似乎没有任何解决方案适合我...
我正在使用 Cordova 2.9.0、JavaScript、HTML 和 CSS 来创建这个应用。
我尝试通过添加代码来更改 AndroidManifest.XML:
<supports-screens android:smallScreens="false"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true"
android:requiresSmallestWidthDp="600"
android:largestWidthLimitDp="720"/>
我也尝试过更改 res -> layout 下的 main.xml 代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World, ShowMeWhere"
/>
</LinearLayout>
这是该页面在 Android 模拟器中的样子:
这也是我想要的样子(显示完整图像):
感谢您的关注!
最佳答案
我找到了一个临时解决方案,但它看起来不太好,因为图像像素化了..
我通过将所有图像引用放入 <div>
来做到这一点然后使用 CSS 设置 max-height
和 max-width
每个 <div>
的。
HTML代码:
CSS 代码:
.leftImage{
margin-left:5%;
max-width:45%;
max-height:65%;
}
.leftImage img{
max-width:100%;
max-height:100%;
}
关于javascript - 调整多个 Android 平板电脑屏幕的大小不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19398340/
我的应用程序中有两个 Activity 。第一个 Activity 启动模式是 singleInstance,第二个 Activity 启动模式是 singleTask。我正在使用这些启动模式,因为我
据热心网友投稿,小米小爱触屏音箱Pro 8外观曝光,可以看到触控屏幕尺寸比较大,像是在音箱上“长”了一个平板。 从曝光的信息来看,小米小爱触屏音箱Pro 8具有白色的配色设计,下方有一个长
我有一张 table ,看起来像, VisitorId date deviceType 1 2018-12-11 mobile 2
今天下午,小米官方公布了小爱触屏音箱Pro 8,可以看到触控屏幕尺寸比较大,音箱上“长”了一个平板。据悉,小米小爱触屏音箱Pro 8具有白色的配色设计,下方有一个长条状的扬声器,上方带有一个尺寸比较
有没有办法检测是否使用手持浏览器(iOS/Android 手机/平板电脑)? 我尝试这样做的目的是让手持设备上的浏览器中的元素宽度减半,但这并没有什么不同。 width: 600px; @media
目前,Google Analytics for web 公开了一个设备类别字段,其离散值为mobile、tablet 和desktop。该界面还允许您更深入地了解它的具体设备。我想 Google 有某
我是一名优秀的程序员,十分优秀!