主题代码怎么写

html-css08

主题代码怎么写,第1张

主题代码写教程:

第一步;准备好 re 管理器一个,没有的自己去下载。

第二步;去主题商店下载一个免费的主题,等下载完即可。无需应用。

第三步;下载群主的完美6主题,解压、去主题商店里导入该主题。导入完成后市应用不了的。(这时候开始改代码了)(前提是先授权 re 管理器》

第四步;打开 E 管理器 miui - theme -. data - meta - theme 文件夹,找到刚才下载免费主题的文

本打开。(别说不知道哪个文本,看下载时间就知道哪个是免费文本);打开后如下图复制。

第五步;复制好后,打开群主的完美6主题文本;也是在同一文件夹里找到此文本。如下图

操作

选定如下图操作把刚才复制的免费主题代码粘贴即可。没事,不要管他,直接点保存退出即可。这时候会发现 on 前面有个空格,保存退出再右上角

第六步;在去主题商店里把刚才导入的完美6主题应用即可,这时候你会发现可以应用了。

注;以上只是拿群主主题作为例子,如需换别的收费主题请与上步骤操作即可,(个别收费主题貌似不行。)

介绍使用简单的HTML/CSS来编写导航页面,并设置为浏览器主页。将自己需要用到的常用连接做成导航页面,美观方便。相比浏览器自带的导航页定制,自制导航页面有更多的自由度。

方法/步骤:

第一步,我们在一个位置固定的文件夹下(不常移动)新建文本文件,修改后缀为.html,然后右键->打开方式,找一个文本编辑器打开。在文本编辑器中,编写基本的这些标签。接下来在Body中,添加一些标签。格式为:显示名称添加好保存,然后用浏览器打开此html文件,可以看到简单的导航页以形成。4、接下来,在head或者其它方便位置添加CSS层叠样式表。5、接下来继续添加一个类名为group的样式。6、然后,在CSS样式中继续添加margin外边距,padding内边距,border-width边框宽,border-radius边框圆角半径等。7、最后,打开浏览器设置页面,设置启动主页为文件位置

<html>

<head>

<meta charset="UTF-8" />

<title></title>

<style type="text/css">

* {

margin: 0

padding: 0

}

html,

body {

width: 100%

height: 100%

}

#head {

height: 5%

background: green

}

#content {

width: 100%

height: 95%

}

#left {

width: 70%

height: 100%

background: blue

float: left

color: white

}

h4 {

margin: 2.5% auto

text-align: center

}

table {

width: 100%

height: 30%

color: white

border-collapse: collapse

}

table td {

text-align: center

}

#right {

width: 30%

height: 100%

background-image: url(img/2018.jpg)

background-size: 100% 100%

float: right

}

#foot {

clear: both

width: 100%

height: 5%

background: green

position: absolute

bottom: 1%

}

#p {

height: 10%

width: 100%

position: absolute

bottom: 6%

background: white

display: table

}

p {

color: red

font-size: 1.2em

font-weight: 800

display: table-cell

vertical-align: middle

}

ul {

width: 50%

height: 100%

margin: 0 auto

overflow: hidden

}

ul li {

width: 20%

float: left

text-align: center

position: relative

top: 50%

transform: translate(0, -50%)

list-style: none

}

a {color: red}

a:hover {color: white}

</style>

</head>

<body>

<div id="head">

<ul>

<li>

<a>赛事直播</a>

</li>

<li>

<a>赛事回放</a>

</li>

<li>

<a>比赛锦集</a>

</li>

<li>

<a>比赛日程</a>

</li>

<li>

<a>球星风采</a>

</li>

</ul>

</div>

<div id="content">

<div id="left">

<h4>球员信息</h4>

<table border="2">

<tr>

<th>姓名</th>

<th>国籍</th>

<th>位置</th>

</tr>

<tr>

<td>梅西</td>

<td>阿根廷</td>

<td>前卫</td>

</tr>

<tr>

<td>C罗</td>

<td>葡萄牙</td>

<td>前锋</td>

</tr>

<tr>

<td>博格巴</td>

<td>法国</td>

<td>中场</td>

</tr>

</table>

</div>

<div id="right">

</div>

<div id="p">

<p>注意,当鼠标移动到导航栏的文字上时候,它会变成白色</p>

</div>

</div>

<div id="foot">

<ul>

<li>

<a>赛事直播</a>

</li>

<li>

<a>赛事回放</a>

</li>

<li>

<a>比赛锦集</a>

</li>

<li>

<a>比赛日程</a>

</li>

<li>

<a>球星风采</a>

</li>

</ul>

</div>

</body>

</html>