Skip to content
Snippets Groups Projects
Commit 0a3d41b1 authored by Zhicheng Xu's avatar Zhicheng Xu
Browse files

111

parent 150d985c
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,5 @@ ...@@ -2,6 +2,5 @@
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" /> <mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="$PROJECT_DIR$/ext ironing/myteam" vcs="Git" />
</component> </component>
</project> </project>
\ No newline at end of file
...@@ -5,7 +5,16 @@ ...@@ -5,7 +5,16 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="5d66d739-0810-4bfa-9039-29f5df43a961" name="更改" comment="111"> <list default="true" id="5d66d739-0810-4bfa-9039-29f5df43a961" name="更改" comment="111">
<change beforePath="$PROJECT_DIR$/.idea/vcs.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/exercise/.idea/.gitignore" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/exercise/.idea/modules.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/exercise/.idea/webcodegit.iml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/exercise/689d1554-9651-4cfe-9f2b-49c815ed30e1.webp" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/exercise/main.css" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/exercise/taobao.css" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/exercise/taobao.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/ext ironing/myteam" beforeDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
...@@ -24,32 +33,32 @@ ...@@ -24,32 +33,32 @@
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
<option name="ROOT_SYNC" value="DONT_SYNC" /> <option name="ROOT_SYNC" value="DONT_SYNC" />
</component> </component>
<component name="GitLabMergeRequestFiltersHistory"><![CDATA[{ <component name="GitLabMergeRequestFiltersHistory">{
"history": [ &quot;history&quot;: [
{ {
"state": "MERGED", &quot;state&quot;: &quot;MERGED&quot;,
"assignee": { &quot;assignee&quot;: {
"type": "org.jetbrains.plugins.gitlab.mergerequest.ui.filters.GitLabMergeRequestsFiltersValue.MergeRequestsMemberFilterValue.MergeRequestsAssigneeFilterValue", &quot;type&quot;: &quot;org.jetbrains.plugins.gitlab.mergerequest.ui.filters.GitLabMergeRequestsFiltersValue.MergeRequestsMemberFilterValue.MergeRequestsAssigneeFilterValue&quot;,
"username": "c24058946", &quot;username&quot;: &quot;c24058946&quot;,
"fullname": "Zhicheng Xu" &quot;fullname&quot;: &quot;Zhicheng Xu&quot;
} }
} }
], ],
"lastFilter": { &quot;lastFilter&quot;: {
"state": "MERGED", &quot;state&quot;: &quot;MERGED&quot;,
"assignee": { &quot;assignee&quot;: {
"type": "org.jetbrains.plugins.gitlab.mergerequest.ui.filters.GitLabMergeRequestsFiltersValue.MergeRequestsMemberFilterValue.MergeRequestsAssigneeFilterValue", &quot;type&quot;: &quot;org.jetbrains.plugins.gitlab.mergerequest.ui.filters.GitLabMergeRequestsFiltersValue.MergeRequestsMemberFilterValue.MergeRequestsAssigneeFilterValue&quot;,
"username": "c24058946", &quot;username&quot;: &quot;c24058946&quot;,
"fullname": "Zhicheng Xu" &quot;fullname&quot;: &quot;Zhicheng Xu&quot;
} }
} }
}]]></component> }</component>
<component name="GitLabMergeRequestsSettings"><![CDATA[{ <component name="GitLabMergeRequestsSettings">{
"selectedUrlAndAccountId": { &quot;selectedUrlAndAccountId&quot;: {
"first": "https://git.cardiff.ac.uk/c23096663/myteam.git", &quot;first&quot;: &quot;https://git.cardiff.ac.uk/c23096663/myteam.git&quot;,
"second": "e7ab46ee-4d9f-4595-99aa-40fd7f0f73ea" &quot;second&quot;: &quot;e7ab46ee-4d9f-4595-99aa-40fd7f0f73ea&quot;
} }
}]]></component> }</component>
<component name="HighlightingSettingsPerFile"> <component name="HighlightingSettingsPerFile">
<setting file="file://$PROJECT_DIR$/taobao.css" root0="SKIP_INSPECTION" /> <setting file="file://$PROJECT_DIR$/taobao.css" root0="SKIP_INSPECTION" />
</component> </component>
...@@ -66,24 +75,24 @@ ...@@ -66,24 +75,24 @@
<option name="hideEmptyMiddlePackages" value="true" /> <option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" /> <option name="showLibraryContents" value="true" />
</component> </component>
<component name="PropertiesComponent"><![CDATA[{ <component name="PropertiesComponent">{
"keyToString": { &quot;keyToString&quot;: {
"DefaultHtmlFileTemplate": "HTML File", &quot;DefaultHtmlFileTemplate&quot;: &quot;HTML File&quot;,
"JavaScript 调试.member home page.html.executor": "Run", &quot;JavaScript 调试.member home page.html.executor&quot;: &quot;Run&quot;,
"JavaScript 调试.taobao.html.executor": "Run", &quot;JavaScript 调试.taobao.html.executor&quot;: &quot;Run&quot;,
"RunOnceActivity.ShowReadmeOnStart": "true", &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
"git-widget-placeholder": "master", &quot;git-widget-placeholder&quot;: &quot;c24058946-main-patch-98829&quot;,
"last_opened_file_path": "D:/webcodegit", &quot;last_opened_file_path&quot;: &quot;D:/webcodegit&quot;,
"list.type.of.created.stylesheet": "CSS", &quot;list.type.of.created.stylesheet&quot;: &quot;CSS&quot;,
"node.js.detected.package.eslint": "true", &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
"node.js.detected.package.tslint": "true", &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
"node.js.selected.package.eslint": "(autodetect)", &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
"node.js.selected.package.tslint": "(autodetect)", &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
"nodejs_package_manager_path": "npm", &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
"settings.editor.selected.configurable": "vcs.Git", &quot;settings.editor.selected.configurable&quot;: &quot;vcs.Git&quot;,
"vue.rearranger.settings.migration": "true" &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
} }
}]]></component> }</component>
<component name="SharedIndexes"> <component name="SharedIndexes">
<attachedChunks> <attachedChunks>
<set> <set>
...@@ -100,7 +109,11 @@ ...@@ -100,7 +109,11 @@
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1728398002254</updated> <updated>1728398002254</updated>
<workItem from="1728398003914" duration="4894000" /> <workItem from="1728398003914" duration="4894000" />
<workItem from="1728550406289" duration="9937000" /> <workItem from="1728550406289" duration="10133000" />
<workItem from="1728561190426" duration="17000" />
<workItem from="1728561255150" duration="1706000" />
<workItem from="1728562981639" duration="300000" />
<workItem from="1728563291174" duration="382000" />
</task> </task>
<task id="LOCAL-00001" summary="111"> <task id="LOCAL-00001" summary="111">
<option name="closed" value="true" /> <option name="closed" value="true" />
...@@ -110,7 +123,15 @@ ...@@ -110,7 +123,15 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1728559850168</updated> <updated>1728559850168</updated>
</task> </task>
<option name="localTasksCounter" value="2" /> <task id="LOCAL-00002" summary="111">
<option name="closed" value="true" />
<created>1728560534167</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1728560534167</updated>
</task>
<option name="localTasksCounter" value="3" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
......
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/webcodegit.iml" filepath="$PROJECT_DIR$/.idea/webcodegit.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
exercise/689d1554-9651-4cfe-9f2b-49c815ed30e1.webp

389 KiB

.header{
/*设置容器的大小,然后让容器内的图片不会超出去*/
border-color: black;/*可视化边框范围用*/
border-style: solid;
width: 100%;
height: 120px;
overflow: hidden;
/*图片超出容器的部分隐藏掉 */
position: relative;
/*这个postion是用于规范,因为img的header的子类,子类的position写的absolute是相对于父类的absolute,规范写法需要加上*/
}
/*将图片按照容器的大小进行适配,统一高度并居中*/
.header img{
height: 120px;
position: absolute;
/*设置图片是绝对位置,并且是绝对是从容器的左一半的位置开始显示*/
left: 50%;
transform: translateX(-50%);
transform是移动属性,X轴移动-50% 也就是向左移动一半的距离,这样就一定是居中显示的图片
}
\ No newline at end of file
body,divdl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}
body{text-align:center;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;}
li{ list-style:none}
a{ text-decoration:none}
img{border:none;}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>小米</title>
<link rel="stylesheet" href="taobao.css">
<link rel="stylesheet" href="main.css">
</head>
<body>
<!--顶部栏-->
<div class="header">
<a href="https://www.dota2.com/home">
<img src="689d1554-9651-4cfe-9f2b-49c815ed30e1.webp" alt="dota2">
</a>
</div>
</body>
</html>
\ No newline at end of file
myteam @ 25f88379
Subproject commit 25f88379848002816ca7fa57c9e6021de6ed74bf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment