- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
body {
background: url('images/hero_2.jpg');
background-repeat: no-repeat;
background-position: top;
background-size: 100%;
margin: 0px 0px;
}
#container_1 {
width: 100%;
height: 300px;
position: absolute;
top: 450px;
left: 0;
border-color: orange;
border-style: solid;
border-size: 1;
}
#valueprop_1 {
text-align: left;
width: 700px;
max-height: 30px;
font-family: calibri;
font-weight: 100;
font-size: 48;
position: relative;
left: 50px;
top: 20px;
line-height: 1;
color: white;
}
#valueprop_2 {
text-align: left;
width: 500px;
max-height: 30px;
font-family: calibri;
font-weight: 100;
font-size: 22;
position: relative;
left: 44px;
top: 110px;
line-height: 1;
margin: 10;
color: white;
}
/* learn more button box*/
#learn_button {
position: absolute;
left: 55px;
top: 250px;
width: 100px;
height: 25px;
background: black;
opacity: .4;
}
/* learn more button text*/
#learn_text {
font-family: calibri;
font-size: 16;
font-weight: normal;
text-align: center;
position: absolute;
left: 68px;
top: 253px;
}
#learn_text a {
text-decoration: none;
color: white;
}
#learn_text ul {
list-style-type: none;
text-align: right;
margin: 0px 0px;
padding: 0;
}
/* register button box*/
#register_buttonA {
position: absolute;
left: 180px;
top: 250px;
width: 100px;
height: 25px;
background: #00ADEF;
}
/* register button text*/
#register_textA {
font-family: calibri;
font-size: 16;
font-weight: normal;
color: white;
text-align: center;
position: absolute;
left: 198px;
top: 253px;
}
#register_textA a {
text-decoration: none;
color: white;
}
#register_textA ul {
list-style-type: none;
text-align: right;
margin: 0px 0px;
padding: 0;
}
#container_2 {
width: 100%;
height: 1100px;
position: absolute;
top: 980px;
left: 0;
border-color: yellow;
border-style: solid;
border-size: 1;
}
#teens_1 {
font-family: calibri;
font-size: 24;
font-weight: normal;
text-align: center;
position: absolute;
left: 50px;
top: 0px;
background-color: transparent;
height: 25px;
width: 25px;
}
#teens_2 {
font-family: calibri;
font-size: 26;
font-weight: normal;
color: grey;
text-align: center;
position: absolute;
left: 50px;
top: 130px;
}
#under_18A {
font-family: calibri;
font-size: 14;
font-weight: 100;
color: grey;
position: relative;
text-align: left;
width: 500px;
left: 50px;
top: 200px;
}
#under_18b {
font-family: calibri;
font-size: 14;
font-weight: 100;
color: grey;
position: relative;
text-align: left;
width: 500px;
left: 28px;
top: 200px;
}
#under_18c {
font-family: calibri;
font-size: 14;
font-weight: 100;
color: grey;
position: relative;
text-align: left;
width: 500px;
left: 50px;
top: 200px;
}
#over_18A {
font-family: calibri;
font-size: 14;
font-weight: 100;
color: grey;
position: relative;
text-align: left;
width: 500px;
right: -800px;
top: -50px;
}
#teens_3 {
font-family: calibri;
font-size: 26;
font-weight: normal;
color: grey;
text-align: center;
position: absolute;
left: 50px;
top: 490px;
}
#parents {
font-family: calibri;
font-size: 14;
font-weight: 100;
color: grey;
position: relative;
text-align: left;
width: 500px;
left: 50px;
top: 70px;
}
#feedback_1 {
position: relative;
right: -780px;
bottom: 345px;
}
/* register button box*/
#register_buttonB {
position: absolute;
right: 50px;
top: 150px;
width: 100px;
height: 25px;
background: #00ADEF;
}
/* register button text*/
#register_textB {
font-family: calibri;
font-size: 16;
font-weight: normal;
color: white;
text-align: center;
position: absolute;
right: 65px;
top: 153px;
}
#register_textB a {
text-decoration: none;
color: white;
}
#register_textB ul {
list-style-type: none;
text-align: right;
margin: 0px 0px;
padding: 0;
}
<html>
<head>
<title>California Driver Education & Training | GEARSTAD</title>
<link href="gstGeneral.css" rel="stylesheet" type="text/css" />
<link href="gstTeens.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<script src="scroll.js"></script>
</head>
<body>
<div id="logo">
<a href="index.html">
<img src="images/gst_logo.png"/>
</a>
</div>
<div id="navbar">
<ul>
<li><a href="index.html">HOME</a></li>
<li class="active"><a href="teens.html">TEENS</a></li>
<li><a href="adults.html">ADULTS</a></li>
<li><a href="seniors.html">SENIORS</a></li>
<li><a href="recovery.html">RECOVERY</a></li>
<li><a href="statement.html">STATEMENT</a></li>
</ul>
</div>
<div id="container_1">
<h1 id="valueprop_1">Our Basic+ Training<br/>Provides New Drivers with<br/>Safe and Efficient Driving Skills</h1>
<h2 id="valueprop_2">Convenient online, mobile, and driver training pickup</h2>
<div id="register_buttonA"></div>
<div id="register_textA">
<ul>
<li><a href="registration.html">Start Now</a></li>
</ul>
</div>
<div id="learn_button"></div>
<div id="learn_text">
<a href="#teens_1">Learn More</a>
</div>
</div>
<div id="container_2">
<h1 id="teens_1"></h1>
<h1 id="teens_2">California Driving Requirements</h1>
<div id="register_buttonB"></div>
<div id="register_textB">
<ul>
<li><a href="registration.html">Start Now</a></li>
</ul>
</div>
<div id="under_18A">
<p><strong>UNDER 18 -</strong> In California, driving lessons for teens are required by the DMV. Driving students under the age of 18 must:</p>
</div>
<div id="under_18B">
<ol>
<li>Pass drivers education online or in a classroom</li>
<li>Earn a driving permit by passing a written driving test</li>
<li>Take six hours of in-car driving lessons from a licensed driving school</li>
<li>Pass the in-car driving test at the DMV</li>
</0l>
</div>
<div id="under_18C">
<p>Driving lessons help you perfect your driving skills so you can safely handle all types of roadways in a variety of conditions. Learn to handle your car
safely and confidently with us. Our excellent driving instructors are up-to-date on the latest techniques in crash avoidance, braking, driving safety, and
California driving laws and they are passing that knowledge on to you!</p>
</div>
<div id="over_18A">
<p><strong>OVER 18 -</strong> The California DMV requires that driving students over the age of 18 pass the in-car driving test at the DMV.
<br/><br/>Even though the DMV doesn't require driving lessons for adults, it is still a good idea to take driving lessons from a professional driving
school. In California, driving laws are subject to change every year. Behind-the-wheel training with our certified driving instructors can keep you
up-to-date on the latest driving laws and techniques in crash avoidance, braking, and driving safety on increasingly packed California roads.
<br/><br/>Many adults take driving lessons to learn the latest defensive driving and safety procedures or master challenging or stressful driving
situations, such as freeways, or busy city streets. Our patient and professional instructors can also help you gain confidence after a collision or
behind-the-wheel scare.</p>
</div>
<h1 id="teens_3">Information for Parents</h1>
<div id="parents">
<p><strong>DRIVING LESSONS -</strong> Your teen will learn in a BMW 3 Series with a top safety rating. Our curriculum covers all driving skills, from simple to
complex. Our uniformed instructor picks up your teen from home or schoolÑfor free! We provide individual instruction with no distractions in the vehicle.
At the end of each lesson, we will assess your teen's driving ability. Professional male and female driving instructors are available.
<br/><br/>Parents trust
GEARSTAD because we're California's largest driving school with over 25 years of experience in providing California driving lessons for teens. We're the
only school that is both approved by the Road Safety Educators' Association and accredited by the Driving School Association of the Americas.
<br/><br/>Our driving school operates locally with local driving instructors in areas across the state. Our certified instructors are smart, patient, and friendly. Your teen
will get training on all driving skills, as well as the latest defensive driving methods and safety techniques.
<br/><br/>Each lesson is tailored to the student's
learning style, and all lessons are individualized and free from distractions. We have a fleet of BMWs for our driving lessons. Your teen will
learn in a vehicle with the highest safety rating in the industry, so you know your teen is safe. Parents are always welcome to ride along and observe
lessons.</p>
</div>
<img id="feedback_1" style="height:auto; width:auto; max-width:500px; max-height:417px;" src="images/feedback_1.jpg"/>
<div id="googaloo">
</div>
</div>
<div id="footer">
<h1 id="copyright_1">© 2014 GEARSTAD Training Group, Inc. All rights reserved.</h1>
<h1 id="copyright_2">Toll Free 800 GEARSTAD | 760.760.7607</h1>
<div id="email">
<a href="mailto:mcaffin@live.com" target="_blank">
<img style="height:auto; width:auto; max-width:25px; max-height:20px;" src="images/icon_email.png"/>
</a>
</div>
<div id="facebook">
<a href="https://www.facebook.com" target="_blank">
<img style="height:auto; width:auto; max-width:25px; max-height:20px;" src="images/icon_facebook.png"/>
</a>
</div>
<div id="twitter">
<a href="https://twitter.com" target="_blank">
<img style="height:auto; width:auto; max-width:25px; max-height:20px;" src="images/icon_twitter.png"/>
</a>
</div>
<div id="feeds">
<a href="https://www.rss.com" target="_blank">
<img style="height:auto; width:auto; max-width:25px; max-height:20px;" src="images/icon_feeds.png"/>
</a>
</div>
</div>
</body>
</html>
我是 HTML 和 CSS 的新手。
我在 13 英寸 MBA 上制作了我的第一个学校元素最终网站,当它在我的 40 英寸三星电视上显示时,元素正在移动。
目前,我将所有元素分开放置在 2 个容器中,并将它们全部定位为“绝对”。然而,当切换到三星电视时,两个容器都会向上移动(容器内的内容保持在同一位置)。
注意:我也将容器宽度设置为 100% 并保留为零。我应该用 % 而不是 px 来表示高度吗?
任何指针都会有帮助
谢谢。
最佳答案
您正在寻找的是创建“响应式”页面。 Bootstrap 是一种将响应式功能引入网页的绝佳且相对简单的方法。在这里查看:http://getbootstrap.com/2.3.2/
关于html - 将元素定位到不同的屏幕尺寸,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27699706/
我有 table 像这样 -------------------------------------------- id size title priority
我的应用在不同的 Activity (4 个 Activity )中仅包含横幅广告。所以我的疑问是, 我可以对所有横幅广告使用一个广告单元 ID 吗? 或者 每个 Activity 使用不同的广告单元
我有任意(但统一)数字列表的任意列表。 (它们是 n 空间中 bin 的边界坐标,我想绘制其角,但这并不重要。)我想生成所有可能组合的列表。所以:[[1,2], [3,4],[5,6]] 产生 [[1
我刚刚在学校开始学习 Java,正在尝试自定义控件和图形。我目前正在研究图案锁,一开始一切都很好,但突然间它绘制不正确。我确实更改了一些代码,但是当我看到错误时,我立即将其更改回来(撤消,ftw),但
在获取 Distinct 的 Count 时,我在使用 Group By With Rollup 时遇到了一个小问题。 问题是 Rollup 摘要只是所有分组中 Distinct 值的总数,而不是所有
这不起作用: select count(distinct colA, colB) from mytable 我知道我可以通过双选来简单地解决这个问题。 select count(*) from (
这个问题在这里已经有了答案: JavaScript regex whitespace characters (5 个回答) 2年前关闭。 你能解释一下为什么我会得到 false比较 text ===
这个问题已经有答案了: 奥 git _a (56 个回答) 已关闭 9 年前。 我被要求用 Javascript 编写一个函数 sortByFoo 来正确响应此测试: // Does not cras
所以,我不得不说,SQL 是迄今为止我作为开发人员最薄弱的一面。也许我想要完成的事情很简单。我有这样的东西(这不是真正的模型,但为了使其易于理解而不浪费太多时间解释它,我想出了一个完全模仿我必须使用的
这个问题在这里已经有了答案: How does the "this" keyword work? (22 个回答) 3年前关闭。 简而言之:为什么在使用 Objects 时,直接调用的函数和通过引用传
这个问题在这里已经有了答案: 关闭 12 年前。 Possible Duplicate: what is the difference between (.) dot operator and (-
我真的不明白这里发生了什么但是: 当我这样做时: colorIndex += len - stopPos; for(int m = 0; m < len - stopPos; m++) { c
思考 MySQL 中的 Group By 函数的最佳方式是什么? 我正在编写一个 MySQL 查询,通过 ODBC 连接在 Excel 的数据透视表中提取数据,以便用户可以轻松访问数据。 例如,我有:
我想要的SQL是这样的: SELECT week_no, type, SELECT count(distinct user_id) FROM group WHERE pts > 0 FROM bas
商店表: +--+-------+--------+ |id|name |date | +--+-------+--------+ |1 |x |Ma
对于 chrome 和 ff,当涉及到可怕的 ie 时,这个脚本工作完美。有问题 function getY(oElement) { var curtop = 0; if (oElem
我现在无法提供代码,因为我目前正在脑海中研究这个想法并在互联网上四处乱逛。 我了解了进程间通信和使用共享内存在进程之间共享数据(特别是结构)。 但是,在对保存在不同 .c 文件中的程序使用 fork(
我想在用户集合中使用不同的功能。在 mongo shell 中,我可以像下面这样使用: db.users.distinct("name"); 其中名称是用于区分的集合字段。 同样我想要,在 C
List nastava_izvjestaj = new List(); var data_context = new DataEvidencijaDataContext();
我的 Rails 应用程序中有 Ransack 搜索和 Foundation,本地 css 渲染正常,而生产中的同一个应用程序有一个怪癖: 应用程序中的其他内容完全相同。 我在 Chrome 和 Sa
我是一名优秀的程序员,十分优秀!