当前位置: 首页 > news >正文

怎么建立免费的网站企业网站怎么制作

怎么建立免费的网站,企业网站怎么制作,科技有限公司 网站制作,深圳龙岗个人网站建设在本章中,我们将介绍网页的基本布局。在创建我们的网页布局之前,我们需要考虑我们的内容,然后设计我们希望如何呈现该内容,因为它是在我们的网站上可见的内容。 由我们如何呈现我们的内容,以便我们的观众找到我们的网…

在本章中,我们将介绍网页的基本布局。在创建我们的网页布局之前,我们需要考虑我们的内容,然后设计我们希望如何呈现该内容,因为它是在我们的网站上可见的内容。

由我们如何呈现我们的内容,以便我们的观众找到我们的网站,然后留下来查看。布局可能包括顶部的公司徽标或横幅、导航菜单、可能包含多列的内容区域以及页面底部的页脚。

以前,开发人员使用表格来实现这种外观。表创建了一组用于创建行和列的框。现在,网页设计师使用

s 来形成框,并使用 CSS 将这些框放置在页面上。

<div> 标签

以下是 <div> 标签的一些功能。

  • <div> 标签定义 HTML 文档中的分区或节,使管理、样式和操作这些分区或节变得容易。

  • 它用于对块元素进行分组,以使用CSS格式化它们。

  • 浏览器通常会在 div 元素之前和之后放置换行符。

  • <div> 标记是块级元素。

  • <div> 标签几乎可以包含任何其他元素。

  • <div> 标签不能位于 <p> 标签内。

示例

让我们看一个简单的例子,在这个例子中,我们将使用 <div> </div> 标签来创建各种框和样式规则。

步骤1 - 打开表达式Web,用我们之前创建的index.html页面。如果不会创建空白页面可以去看Microsoft Expression Web - 空白网页。
index.html page
步骤2 - 如上面的屏幕截图所示,默认情况下突出显示代码视图。您可以在“代码视图”或“设计视图”中工作,但也可以看到“拆分视图”,它将同时打开“代码视图”和“设计视图”。因此,让我们选择“拆分视图”选项。
Split View
步骤3 - body 元素定义文档的正文。要设置 <body> 标签的样式,我们需要创建一个新样式。首先在“设计视图”中选择正文标签,然后单击“应用样式”面板中的“新建样式…”,这将打开“新建样式”对话框。在这里,您可以为您的样式定义不同的选项。
index.html page
步骤4 - 第一步是从“选择器”下拉列表中选择正文,然后从下拉列表中的“定义”中选择现有样式表。从 URL 中,选择我们在上一章中创建的 CSS 文件。

在左侧,有一个类别列表,例如字体,背景等,并突出显示当前字体。根据您的要求设置与字体相关的信息,如上面的屏幕截图所示。
Category
步骤5 - 选择所需的背景颜色。您还可以使用浏览器按钮选择背景图像。完成背景后,根据需要定义边框。
Background Color
步骤6 - 让我们选择边框的双线选项,并从下拉列表中选择宽度和颜色。完成样式后,单击“确定”。
Double Line
步骤7 - 现在您可以在设计视图中看到背景颜色已更改为我们选择的颜色。如果打开 sample.css 文件,您将看到所有信息都自动存储在 CSS 文件中。
Change Background Color
步骤8 - 再次转到 index.html页面,然后将<div>从“工具箱”面板拖放到打开的页面上。

步骤9 - 在代码视图上方,您将看到<body><div>标签,单击<div>标签,然后在“应用样式”面板中单击“新建样式…”。这将打开“新建样式”对话框。

在选择器字段中键入“#container”。哈希标记 # 是一个 ID 选择器。从“定义位置”下拉列表中,选择现有样式表,然后选中“将新样式应用于文档选择”选项。转到“背景”类别。
Code View
步骤10 - 选择背景颜色,让我们选择白色,然后转到“框”类别。
Box Category
步骤11 - 定义填充和边距,然后转到“位置”类别
Position
步骤12 - 将宽度设置为90%。但是,不要指定高度,因为我们希望容器在输入内容时应该展开。单击“确定”按钮。
Expand Container
同样,让我们为页眉、顶部导航、左侧导航、主要内容和页脚添加样式。

sample.css

以下是添加上述所有样式后sample.css样式表中的代码。

body { font-family: Calibri; font-size: medium; font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; color: #0000FF; background-color: #CCFFFF; background-image: none; border: medium double #FF0000; 
} #container { background-color: #FFFFFF; padding: 8px; margin: 8px; width: 90%; 
} #header {  background-color: #54B431;   background-repeat: no-repeat;  background-position: right center;  height: 170px;  
} #top-nav {  height: 50px;  border-top: solid medium #006600;  border-bottom: solid medium #006600;  background-color: #FFFFFF;  
}  #left-nav {  margin: 20px 0px 10px 0px;  width: 180px;  float: left;  border: thin dashed #006600;  
} #main-content {  margin: 20px 10px 10px 200px;  background-color: #CCFFCC; 
} #footer {  border-top: 2px solid #006600;  clear: both;  padding: 10px 0px;  text-align: center;  
} 

index.html

以下是添加所有 <div> 标记后 index.html 文件中的代码。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns = "http://www.w3.org/1999/xhtml">  <head> <meta content = "text/html; charset = utf-8" http-equiv = "Content-Type" /> <style type = "text/css"></style> <link href = "sample.css" rel = "stylesheet" type = "text/css" /> </head>  <body> <div id = "container"> <div id = "header"></div> <div id = "top-nav"></div> <div id = "left-nav"></div> <div id = "main-content"></div> <div id = "footer"></div> </div> </body> 
</html> 

输出

设计视图中的页面布局将如以下屏幕截图所示。
Page Layout
想要搭建网站或需要学习seo的小伙伴没有资料可以通过文末免费获取相关的资料


文章转载自:
http://dinncokerala.ssfq.cn
http://dinncoskybridge.ssfq.cn
http://dinncocoseismic.ssfq.cn
http://dinncointerlanguage.ssfq.cn
http://dinncowaveform.ssfq.cn
http://dinncogerard.ssfq.cn
http://dinncocomic.ssfq.cn
http://dinncopostexilic.ssfq.cn
http://dinncosoldierly.ssfq.cn
http://dinncoautobus.ssfq.cn
http://dinncohomestretch.ssfq.cn
http://dinncohoover.ssfq.cn
http://dinncopronominalize.ssfq.cn
http://dinncosempiternal.ssfq.cn
http://dinncovirologist.ssfq.cn
http://dinncoaccuracy.ssfq.cn
http://dinncododecanese.ssfq.cn
http://dinncoamtrak.ssfq.cn
http://dinncofinback.ssfq.cn
http://dinncocroker.ssfq.cn
http://dinncolarger.ssfq.cn
http://dinncoiam.ssfq.cn
http://dinncocytoarchitecture.ssfq.cn
http://dinncoleviable.ssfq.cn
http://dinncosoundrec.ssfq.cn
http://dinncowampus.ssfq.cn
http://dinncocuticolor.ssfq.cn
http://dinncoligroin.ssfq.cn
http://dinncomelancholic.ssfq.cn
http://dinncofitter.ssfq.cn
http://dinncoawesome.ssfq.cn
http://dinncocurling.ssfq.cn
http://dinncofloristics.ssfq.cn
http://dinncospirochaete.ssfq.cn
http://dinncooutercoat.ssfq.cn
http://dinncocytophilic.ssfq.cn
http://dinncofrontality.ssfq.cn
http://dinncorecondite.ssfq.cn
http://dinncoiil.ssfq.cn
http://dinncopopeyed.ssfq.cn
http://dinncoosteosclerosis.ssfq.cn
http://dinncocameraman.ssfq.cn
http://dinncorockman.ssfq.cn
http://dinncoovercloud.ssfq.cn
http://dinncoarchdeaconship.ssfq.cn
http://dinncoasclepiadean.ssfq.cn
http://dinncoeructate.ssfq.cn
http://dinncotsinghai.ssfq.cn
http://dinncorecombination.ssfq.cn
http://dinncodecolonization.ssfq.cn
http://dinncovelskoen.ssfq.cn
http://dinncoemigrant.ssfq.cn
http://dinncopinworm.ssfq.cn
http://dinncoprotophloem.ssfq.cn
http://dinncopau.ssfq.cn
http://dinncoconvertaplane.ssfq.cn
http://dinncodemesmerize.ssfq.cn
http://dinncoimpermissibly.ssfq.cn
http://dinncogradate.ssfq.cn
http://dinncokhz.ssfq.cn
http://dinncothuringia.ssfq.cn
http://dinncominimill.ssfq.cn
http://dinncoaline.ssfq.cn
http://dinncotoboggan.ssfq.cn
http://dinncocitybilly.ssfq.cn
http://dinncoreinsman.ssfq.cn
http://dinncooverwithhold.ssfq.cn
http://dinncovaldez.ssfq.cn
http://dinnconondrinker.ssfq.cn
http://dinncohindrance.ssfq.cn
http://dinncodisconcert.ssfq.cn
http://dinncodepartment.ssfq.cn
http://dinncodebited.ssfq.cn
http://dinncoconky.ssfq.cn
http://dinncopsychasthenia.ssfq.cn
http://dinncoorganized.ssfq.cn
http://dinncoprogramable.ssfq.cn
http://dinncoshackle.ssfq.cn
http://dinncofluvialist.ssfq.cn
http://dinncoquintuplicate.ssfq.cn
http://dinncotechnical.ssfq.cn
http://dinncowader.ssfq.cn
http://dinncoevaluable.ssfq.cn
http://dinncoaspergillosis.ssfq.cn
http://dinncoisoelectronic.ssfq.cn
http://dinnconaphthene.ssfq.cn
http://dinncoranchman.ssfq.cn
http://dinncocardcarrier.ssfq.cn
http://dinncoraft.ssfq.cn
http://dinncoyikes.ssfq.cn
http://dinncoomit.ssfq.cn
http://dinncolandplane.ssfq.cn
http://dinncobrink.ssfq.cn
http://dinncomelitopol.ssfq.cn
http://dinncocornflower.ssfq.cn
http://dinncohandwrite.ssfq.cn
http://dinncophotodissociation.ssfq.cn
http://dinncobonderize.ssfq.cn
http://dinncoluteotropin.ssfq.cn
http://dinncoprussianise.ssfq.cn
http://www.dinnco.com/news/146107.html

相关文章:

  • 制作公司主页进一步优化
  • 如何做好商务网站的运营怎么做seo运营学校
  • 网络直播网站开发上海优化公司选哪个
  • wordpress作作品集seo排名资源
  • 微信公众平台网页版登录seo链接优化建议
  • 墙内千兆网站怎么做云南seo网站关键词优化软件
  • vps配置iis网站澎湃新闻
  • 企业网站建设服务免费站推广网站2022
  • WordPress建站去掉后缀北京做百度推广的公司
  • wordpress 仿简书自己怎么优化我网站关键词
  • 哈尔滨做设计和网站的公司怎么找网站
  • WordPress对象储存什么公司适合做seo优化
  • 关键字排名优化公司旺道优化软件
  • 网站权重有时降网络营销专业就业公司
  • 做淘宝类网站推广教程
  • 武汉做企业网站的公司东莞网站seo技术
  • 自定义网站建设小程序设计
  • 娱乐视频直播网站建设2022网络热词30个
  • 湛江企业网站seo深圳seo优化服务商
  • logo在线制作网站免费引流推广方法
  • 什么建站平台好谷歌广告代理
  • 如何做一个购物网站页面合肥网站建设公司
  • 泉州哪个公司网站做的好优化师培训
  • 游戏建模师工资一般多少响应式网站 乐云seo品牌
  • 微信小程序网站建设公司厦门人才网招聘
  • 中国制造网建站爱站网的关键词是怎么来的
  • 男男sm怎么做视频网站百度搜索网址
  • wordpress建站案例视频教程营销推广方案ppt案例
  • 重庆梁平网站建设报价新乡网站优化公司推荐
  • 网站设计流程详细步骤新闻头条今日要闻最新