我正在做一个学校项目,我正在学习如何使用Dreamweaver模板。我已经构建了页面并且模板正在运行,但是其他页面中较长的文本并没有像它应该包含在Content div中。我不知道为什么?我不知道如何制作小提琴,但这是影响代码。
HTML:
<div class="container">
<div class="content" id="home_img">
<!-- TemplateBeginEditable name="photo" -->
<img src="../photos-winery/napa2_edit.jpg" width="457" height="300" alt="Winery" />
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="text" -->
<div class="text">
<h1>A Napa Valley winery dedicated to quality wines for three generations.</h1>
<p> Offering a selection of classic varietals to last: Merlot, Syrah, Cabernet Sauvignon, Chardonnay, Sauvignon Blanc, Chenin Blanc, and more. </p>
<h2>Because life is too short for compromise.</h2>
<!--end .text --></div>
<!-- TemplateEndEditable --><!-- end .content --></div>
CSS:
#container {
background-color: transparent;
height: 100%;
padding-top: 10px;
width: 100%;
}
.content {
margin-top: 5em;
background-color: rgba(0,0,0,.05);
font-family: "Times New Roman", Times, serif;
font-size: 16px;
line-height: 1.28em;
letter-spacing: 1.5px;
vertical-align: middle;
text-align: left;
padding: 60px 0 60px;
position: relative;
background-image: url(../photos-winery/vine_edit.png);
background-repeat: no-repeat;
background-position: right top;
width: 955px;
border: medium solid #CCC;
}
.content #home_img {
margin: 10px;
float: right;
border: 1px outset #000000;
text-align: right;
}
.text {
width: 45%;
margin-top: 2em;
margin-left: 5px;
margin-right: 2em;
float: right;
}
感谢任何帮助
答案 0 :(得分:0)
HTML:<div ID="blabla">
- &gt;
CSS:#blabla{}
HTML:<div class="blabla">
- &gt;
CSS:.blabla{}
查看代码中的差异。