当前位置:网站首页>Xiaobai programmer's fifth day
Xiaobai programmer's fifth day
2022-07-25 22:20:00 【Too difficult L】
Web news interface establishment
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Entertainment News </title>
<style>
body{
background-color:silver;
}
/* Remove underscores */
a{
text-decoration: none;
}
.news-wrapper{
/* Set width */
width: 350px;
/* Set height */
height: 357px;
/* Set the background color */
background-color:#fff;
/* Set the top border */
border-top: 1px #ddd solid;
margin: 50px auto;
}
.news-title{
/* Turn inline elements into inline blocks , To make the border as wide as the text */
display: inline-block;
/* Set the top border */
border-top: 1px red solid;
/* Set the top border to move up , Cover the gray border */
margin-top: -1px;
/* Set height */
height: 40px;
/* Text centered vertically */
line-height: 40px;
}
/* Set up title The style of hyperlinks in */
.news-title a{
/* Set text size */
font-size: 16px;
/* Set the text color */
color: #40406B;
/* The words are bold */
font-weight: bold;
}
.news-title a:hover{
color: red;
}
/* Set the height of the picture container */
.news-img{
height: 100px;
}
.news-img .img-title{
/* Move text up */
margin-top: -30px;
/* Shift text right */
margin-left: 25px;
/* Set font color */
color:whitesmoke;
/* Set font bold */
font-weight: bold;
}
.news-list{
margin-top: 20px;
}
/* Set up li*/
.news-list li{
margin-bottom: 20px;
}
/* Set up li Text styles in */
.news-list li a{
/* Set font size 、 Color */
font-size: 14px;
color: gray;
}
/* Set the mouse hyperlink move in state */
.news-list li a:hover{
color: red;
}
.news-list li::before{
/* Add bullet */
content: "■";
/* Set the color size margin */
color: rgb(218,218,218);
font-size: 12px;
margin-right: 4px;
}
</style>
</head>
<body>
<div class="news-wrapper">
<!-- Create Title labels -->
<h2 class="news-title"><a href="#"> entertainment </a></h2>
<!-- Create a picture container -->
<div class="news-img">
<a href="#">
<img src="2.PNG" alt="">
<h3 class="img-title"> <span>#</span> </h3>
</a>
</div>
<!-- News list -->
<ul class="news-list">
<li><a href="#"> Huang Zongze restaurant announced its closure Loss of more than one million </a></li>
<li><a href="#"> Zhang Kaili : Actors should not be eager for quick success , Have real talent </a></li>
<li><a href="#"> The net revealed that Yang Yang's wax statue was harassed by a young woman </a></li>
<li><a href="#"> Ding Taisheng roast that Guo Jingming plagiarized Vulgar words are scolded </a></li>
</ul>
</div>
</body>
</html>

边栏推荐
- Application of breakthrough thinking in testing work
- vim用法记录
- Don't know mock test yet? An article to familiarize you with mock
- SQL基本语句 DQL select与提取 DML插入删除
- JSP nine built-in objects
- Why does redisv6.0 introduce multithreading?
- Xiaobai programmer the next day
- ArcGIS10.2配置PostgreSQL9.2标准教程
- Ts:typera code fragment indentation display exception (resolved) -2022.7.24
- Sofa weekly | open source person - Niu Xuewei, QA this week, contributor this week
猜你喜欢

Smart S7-200 PLC channel free mapping function block (do_map)

在腾讯干软件测试3年,7月无情被辞,想给划水的兄弟提个醒...

突破性思维在测试工作中的应用

3. Editors (vim)

What is partition and barrel division?

Summary of function test points of wechat sending circle of friends on mobile terminal

About vscode usage+ Solutions to the problem of tab failure

Ts:typera code fragment indentation display exception (resolved) -2022.7.24

Xiaobai programmer's fourth day

Visitor mode
随机推荐
Use of hyperlinks
JMeter websocket接口测试
ML-Numpy
What is partition and barrel division?
QML module not found
Basic principle of torque motor control
淦,为什么 '𠮷𠮷𠮷' .length !== 3 ??
The technical aspects of ByteDance are all over, but the result is still brushed. Ask HR why...
How to call the size of two numbers with a function--- Xiao Tang
VIM usage record
Why is the integer type 128 to byte -128
arcgis开发常用源码
[test development methodology] experience of test development platform PK - choice
The reisson distributed lock renewal failed due to network reasons, resulting in the automatic release of the lock when the business is still executing but the lock is not renewed.
Solutions to the failure of win key in ikbc keyboard
About vscode usage+ Solutions to the problem of tab failure
Wechat applet (anti shake, throttling), which solves the problem that users keep pulling down refresh requests or clicking buttons to submit information; Get the list information and refresh the data
『SignalR』. Net using signalr for real-time communication
4day
科大讯飞智能办公本Air电纸书阅读器,让我的工作生活更加健康