如何更改< div>基于设备的大小 [英] How to change <div> size based on devices
本文介绍了如何更改< div>基于设备的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个已经使用Expression Engine开发的网站.目前,如果我在手机或其他设备上打开网站,则屏幕上的几个部分会被剪掉.
I am having a website already developed using Expression Engine. Currently if i open site on mobile phone or other device few sections cut off from the screen.
调试之后,我发现我需要更改DIV的高度< div id ="tabmiddle" style ="height:1500px;">
.我是表情引擎的新手.
After debugging i found that i need to change height of DIV <div id="tabmiddle" style="height:1500px;">
in respect of device. I am very new to expression engine.
我正在寻找类似
if (Mobile Device)
{
<div id="tabmiddle" style="height:2000px;">
}else if(Tab Device)
{
<div id="tabmiddle" style="height:1800px;">
}else
{
<div id="tabmiddle" style="height:1500px;">
}
推荐答案
查看全文