Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 我怎样才能在我的文本下获得div?_Css_Html_Position - Fatal编程技术网

Css 我怎样才能在我的文本下获得div?

Css 我怎样才能在我的文本下获得div?,css,html,position,Css,Html,Position,我有一个文本块,下面需要有3个div,但我似乎无法理解CSS 我以前使用过float,它在Chrome和FF中运行良好,但在IE8中不起作用,所以我现在删除了float,并在父div上使用内联块,但我似乎做得对 以下是我到目前为止所掌握的一些资料: <div class="allinfo"> <div class="menu"> <div class="menutop"> WATCHGUARD SHOP MENU </div> <

我有一个文本块,下面需要有3个div,但我似乎无法理解CSS

我以前使用过
float
,它在Chrome和FF中运行良好,但在IE8中不起作用,所以我现在删除了float,并在父div上使用
内联块
,但我似乎做得对

以下是我到目前为止所掌握的一些资料:

<div class="allinfo">



<div class="menu">

<div class="menutop">
WATCHGUARD SHOP MENU
</div>


<span>
<ul class="menuoptions">

<li><span class="redtext">WatchGuard Home</span></li>

<li>XTM Series Firewalls</li>

<li>XCS Series Firewalls</li>

<li>SSL VPN Encryption</li>

<li>Security In Education</li>

<li>Wireless Access Points</li>

<li>FREE Quotation</li>
</ul>

<div class="tradein">
TRADE IN
</div>
<div class="tradeininfo">
<strong>Trade Up</strong><br>
Trade in an earlier generation WatchGuard appliance or any approved non-WatchGuard appliance-based security solution, and trade up to eligible new WatchGuard solutions at 25% off the standard purchase price. </div>

</div>


<div class="whitepapers">
WHITEPAPERS
</div>

<div class="whitepapersinfo">

<ul>

<li>Take Back Control</li>

<li>Data Loss Prevention</li>

<li>Securing the Virtual World</li>

</ul>

</div>
</div>

<div class="maintext">
<h5>Welcome To The WatchGuard Homepage</h5><br>

<p>WatchGuard builds affordable, all-in-one network and content security solutions to provide defense in depth for corporate content, networks and the businesses they power.</p>

<p>WatchGuard's award-winning extensible threat management (XTM) network security solutions combine firewall, VPN and security services to protect networks from spam, viruses, malware and intrusions.</p>

<p>The new Extensible Content Security (XCS) appliances offer content security across e-mail and web combined with data loss prevention for complete content protection.</p>

<p>WatchGuard extensible solutions scale to offer right-sized security for small businesses up to enterprises with 10,000+ employees.</p>

<p>Since our founding in 1996, more than 600,000 WatchGuard signature red security appliances have been deployed worldwide. Today more than 15,000 dedicated partners back our products in 120 countries.</p>
</div>

<div class="product">
<span>WatchGuard SSL/VPN</span><br><br><br>
<img src="images/watchguard-tb-ssl.jpg" width="199"><br><br>
<p>
Remote connectivity. Secure remote access that just works.</p>

</div>

<div class="product">
<span>WatchGuard XCS</span><br><br><br>
<img src="images/watchguard-tb-xcs.jpg" width="117" height="72"><br><br>
<p>
Content security. Defense in-depth email security and web security.</p>

</div>

<div class="product">
<span>WatchGuard XTM</span><br><br><br>
<img src="images/watchguard-tb-xtm.jpg" width="122" height="72"><br><br>
<p>
Multi-function firewalls. Incredible speed. Unbelievable value.</p>
</div>


</div>

手表店菜单
  • 看守所
  • XTM系列防火墙
  • XCS系列防火墙
  • sslvpn加密
  • 教育安全
  • 无线接入点
  • 自由报价
置换 向上交易
交易早期的WatchGuard设备或任何经批准的基于非WatchGuard设备的安全解决方案,并以标准购买价格25%的折扣交易到合格的新WatchGuard解决方案。 白皮书
  • 夺回控制权
  • 数据丢失预防
  • 保护虚拟世界的安全
欢迎访问WatchGuard主页
WatchGuard构建价格合理的一体式网络和内容安全解决方案,为企业内容、网络及其支持的业务提供纵深防御

WatchGuard屡获殊荣的可扩展威胁管理(XTM)网络安全解决方案结合了防火墙、VPN和安全服务,以保护网络免受垃圾邮件、病毒、恶意软件和入侵

新的可扩展内容安全(XCS)设备提供了跨电子邮件和web的内容安全,并结合了数据丢失预防功能,实现了完整的内容保护

WatchGuard可扩展解决方案可扩展,可为小型企业提供适当规模的安全保护,最多可为拥有10000多名员工的企业提供

自1996年成立以来,我们在全球部署了60多万台WatchGuard标志性红色安全设备。如今,超过15000名专业合作伙伴在120个国家支持我们的产品

WatchGuard SSL/VPN




远程连接。安全的远程访问,只是工作

WatchGuard XCS




内容安全。深入防御电子邮件安全和网络安全

WatchGuard XTM




多功能防火墙。难以置信的速度。难以置信的价值

这就是我想要的:


希望这是您正在寻找的html代码。它与您定义的模式相同。根据您的要求更改代码

<style type="text/css">
.smallBottomDivs
{
   width:100px; height:100px; display:inline-block; background-color:#0CC;
}
.MainDivs
{
   height:200px; display:inline-block; background-color:#F00;
}
</style>
<div style="display:block;">
    <div class="MainDivs" style="width:100px;float:left;"></div>
    <div class="MainDivs" style="width:350px;">
           <div style="width:300px; display:block; height:100px;"></div>
           <div style="width:350px; display:block;">
               <div class="smallBottomDivs"></div>
               <div class="smallBottomDivs"></div>
               <div class="smallBottomDivs"></div>
           </div>
        </div>
    </div>

.小屁股
{
宽度:100px;高度:100px;显示:内联块;背景色:#0CC;
}
主治医生
{
高度:200px;显示:内联块;背景色:#F00;
}

我添加了浮点而不是内联块,请告诉我它在ie8中是否好,我不知道:

.allinfo {
   float: left;
}

.maintext {
    float: right;
    width:700px;
    height:500px;
    position:relative;
    top:40px;
    font-size:smaller;
    font-weight:normal;
    vertical-align:top;
}

.product {
    width:205px;
    height:205px;
    border-style:solid;
    border-width:1px;
    border-color:#CCC;
    margin:4px;
    right:25px;
    padding:10px;
    text-align:center;
    float: right;
}


请检查小提琴中的HTML语法。有未关闭的标签和。。。使用缩进!标签和空格键的存在是有原因的。你可以尝试使用一个框架,比如bootstrap,这可能会有帮助:谢谢@Paulie_D,我要读一下:)那么这是一个糟糕的例子。我建议用CSS添加单独的标记。