Home Web Front-end HTML Tutorial Practical imitation blog page

Practical imitation blog page

May 11, 2018 pm 03:08 PM
blog Actual combat Web page

This article mainly introduces a simple blog webpage written through html and css imitation. Interested friends can refer to it.

The code is as follows:

<!DOCTYPE html>  
<html>  
<head>  
<meta charset = "utf-8">  
<title>myBlog</title>  
<style>
        body{  
            margin:0;  
            padding:0;  
        }  
  
        #container{  
            width:1349px;  
            height:1500px;  
            background-color:#eee;  
        }  
  
        #header{  
            background-color:white;  
            height:50px;  
            width:1349px;  
        }  
  
        #header .title li{  
            height:50px;  
            line-height:50px;  
            font-size:15px;  
            margin-left:20px;  
            margin-right:10px;  
            list-style-type:none;  
            float:left;  
        }  
        .title li a:link{  
            color:black;  
            text-decoration:none;  
        }  
        .title li a:hover{  
            color:red;  
        }  
        #header .subtitle li {  
            line-height:50px;  
            float:left;  
            list-style-type:none;  
            font-size:15px;  
            margin-right:10px;  
            color:black;  
        }  
            .subtitle li a:link{  
            color:black;  
            text-decoration:none;  
        }  
            .subtitle li a:hover{  
            color:red;  
        }  
        #main{  
            width:1349px;  
            height:1500px;  
            background-image:url(./images/bkg.jpg);  
        }  
        #main h{  
            margin:50px 900px 50px  80px;  
            font-size:40px;  
            font-weight:700px;  
            float:left;  
        }  
        #main .mana li {  
            float:left;  
            margin-right:20px;  
            margin-top:40px;  
            list-style-type:none;  
            font-size:15px;  
            color:white;  
        }  
        .mana li a{  
            border:1px solid white;  
            padding:2px;  
            color:white;  
            text-decoration:none;  
        }  
        .mana a:hover{  
            background:red;  
            color:white;  
        }  
  
  
        #lside{  
            width:800px;  
            height:700px;  
            background:white;  
            margin:0px 50px 50px 80px;  
            padding:5px;  
            float:left;  
        }  
          
        #rside{  
            width:300px;  
            height:1000px;  
            background:white;  
            float:left;  
        }  
          
        #state h{  
            margin:20px 400px 20px 15px;  
            color:#999;  
            font-size:18px;  
            border:1px solid gray;  
            padding:2px;  
            font-family:&#39;PingFang SC&#39;,&#39;Microsoft YaHei&#39;,SimHei,Arial,SimSun;  
        }  
        #state img{  
            margin:20px 20px 10px 15px;  
        }  
        #artitlrtitle h{  
            font-size:20px;  
            font-weight:700px;  
            margin:10px 200px 10px 15px;  
            float:left;  
            clear:both;  
        }  
  
        #content p{  
            font-size:10px;  
            margin:5px 15px;  
            clear:both;  
            color:#999;  
        }  
        #time h{  
            margin:3px 10px 5px 15px;  
            font-size:15px;  
            float:left;  
            color:#999;  
        }  
        #time .oth{  
            margin:3px 10px 5px 15px;  
            font-size:15px;  
            float:left;  
            color:#999;  
        }  
          
        #head img{  
            margin:15px;  
        }  
          
        #head p{  
            float:left;  
            font-size:20px;  
            margin:30px 10px;  
            font-weight:700px;  
            color:#999;  
            font-weight:600px;  
        }  
          
        #four .yuan{  
            font-size:16px;  
            font-weight:700px;  
            margin:5px 10px 10px 40px;  
            color:gray;  
            float:left;  
        }  
          
        #four  .num1{  
            font-size:14px;  
            font-weight:700px;  
            margin:5px 6px 20px 51px;  
            color:#999;  
        }  
        #four .num2{  
            font-size:14px;  
            font-weight:700px;  
            margin:5px 7px 20px 50px;  
            color:#999;  
        }  
        #four .num3{  
            font-size:14px;  
            font-weight:700px;  
            margin:5px 7px 20px 46px;  
            color:#999;  
        }  
        #four .num4{  
            font-size:14px;  
            font-weight:700px;  
            margin:5px 7px 20px 29px;  
            color:#999;  
        }  
        #intro{  
            height:260px;  
            width:300px;  
            margin-top:10px;  
        }  
        #intro .ff{  
            font-size:10px;  
            margin:5px 20px;  
            clear:both;  
        }  
        #fenlei h{  
            font-size:15px;  
            font-weight:700px;  
            float:left;  
            margin:10px 20px;  
            font-weight:700px;  
        }  
        #fenlei p .ti1 {  
            float:left;  
            clear:left;  
            font-size:10px;  
            margin:5px 20px;  
            color:gray;  
            text-decoration:none;  
        }  
          
        #fenlei p .ti1:hover{  
            color:red;  
        }  
        #fenlei .tii1{  
            float:right;  
            clear:right;  
            font-size:8px;  
            margin:5px 20px;  
            color:#bbb;  
        }  
        #cundang h{  
            font-size:15px;  
            font-weight:700px;  
            float:left;  
            clear:left;  
            margin:20px 20px;  
        }  
        #cundang p .ti1{  
            float:left;  
            clear:left;  
            font-size:10px;  
            margin:5px 20px;  
            color:gray;  
            text-decoration:none;  
        }  
        #cundang p .ti1:hover{  
            color:red;  
        }  
        #cundang .tii1{  
            float:right;  
            clear:right;  
            font-size:8px;  
            margin:5px 20px;  
            color:#bbb;  
        }  
          
        #paiming h{  
            font-size:15px;  
            font-weight:700px;  
            float:left;  
            clear:left;  
            margin:20px 20px;  
            font-weight:700px;  
        }  
        #pm .tiname{  
            float:left;  
            clear:left;  
            font-size:15px;  
            margin:5px 20px;  
            color:gray;  
            text-decoration:none;  
        }  
        #pm .tiname:hover{  
            color:red;  
        }  
        #pm .tinum{  
            float:left;  
            clear:left;  
            font-size:8px;  
            margin:3px 20px;  
            color:#bbb;  
        }  
        #callus h{  
            font-size:15px;  
            font-weight:700px;  
            float:left;  
            clear:left;  
            margin:20px 20px;  
            font-weight:700px;  
        }  
          
        #callus .us{  
            font-size:10px;  
            margin:5px 2px 5px 20px;  
            float:left;  
            clear:left;  
        }  
        #callus .weibo{  
            font-size:10px;  
            margin:5px 5px;  
            padding-right:80px;  
            float:right;  
            clear:right;  
        }  
        #callus .us1{  
            font-size:10px;  
            margin:5px 20px;  
            float:left;  
            clear:left;  
        }  
        #callus .oo1{  
            margin:40px 80px 10px 80px;  
            font-size:10px;  
            float:left;  
            clear:left;  
        }  
        #callus .oo2{  
            margin:10px 80px 10px 80px;  
            font-size:10px;  
            float:left;  
            clear:left;  
        }  
</style>
<!-- <link rel = "stylesheet" type = "text/css" href = "blog.css">   -->
</head>  
    <body>  
        <div id  = "container">   
        <div id = "header">  
          
        <div id = "firstpic" >  
        <img  a href = "" src = "./images/csdn.jpg" alt = "" width="80" height="50" style="float:left"></a>  
        </div>  
        <div id = "menu">  
        <ul class = "title" >  
        <li><a  href = "#" >博客</a></li>   
        <li><a  href = "#" >学院</a></li>   
        <li><a  href = "#" >下载</a></li>   
        <li><a  href = "#" >GitChat</a></li>   
        <li><a  href = "#" >论坛</a></li>   
        <li><a  href = "#" >问答</a></li>   
        <li><a  href = "#" >商城</a></li>   
        <li><a  href = "#" >头条</a></li>   
        <li><a  href = "#" >活动</a></li>   
        <li><a  href = "#" >码云</a></li>   
        <li><a  href = "#" style = "margin-right:150px">ITeye</a></li>   
        </ul>  
        </div>  
        <div id = "secondpic" >  
        <img id = "search" src = "./images/search.jpg" alt = ""  height="40" width = "200" style="float:left" >  
        </div>  
        <div id = "other">  
        <ul class = "subtitle" >  
        <li><a  href = "#" style="margin-left:23px">写博客</a></li>   
        <li><a  href = "#" style="margin-left:23px">发Chat</a></li>   
        </ul>  
        </div>  
        <div id = "thirdpic">  
        <img a href = "" src = "./images/c.gif" alt = "" width = "50" height = "50" style="float:left"></a>  
        </div>  
        </div>  
          
        <div id = "main">  
            
        <h>我的博客</h>  
        <ul class = "mana">  
        <li><a  href = " " >修改个人资料</a></li>   
        <li><a  href = " " >管理博客</a></li>   
        </ul>  
          
        <div id = "lside">  
          
        <div id = "state">  
        <h>只看原创</h>  
        <div id = "fourthpic">  
        <img src = "./images/search.jpg" alt = "" >  
        </div>  
        </div>  
          
        <div id = "artitlrtitle">  
        <h > listview实现列表</h>  
        </div>  
        <div id = "content">  
        <p>listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表. listview实现一个列表.listview实现一个列表.</p>  
        </div>  
        <div id = "time">  
        <h>原创</h>  
        <p class = "oth">2018-01-01 00:00:00</p>  
        <p class = "oth">阅读量:1000</p>  
        <p class = "oth">评论:2</p>  
        </div>  
          
        <div id = "artitlrtitle">  
        <h>listview实现列表</h>  
        </div>  
        <div id = "content">  
        <p>listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表. listview实现一个列表.listview实现一个列表.</p>  
        </div>  
        <div id = "time">  
        <h>原创</h>  
        <p class = "oth">2018-01-01 00:00:00</p>  
        <p class = "oth">阅读量:1000</p>  
        <p class = "oth">评论:2</p>  
        </div>  
          
        <div id = "artitlrtitle">  
        <h>listview实现列表</h>  
        </div>  
        <div id = "content">  
        <p>listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表. listview实现一个列表.listview实现一个列表.</p>  
        </div>  
        <div id = "time">  
        <h>原创</h>  
        <p class = "oth">2018-01-01 00:00:00</p>  
        <p class = "oth">阅读量:1000</p>  
        <p class = "oth">评论:2</p>  
        </div>  
          
        <div id = "artitlrtitle">  
        <h>listview实现列表</h>  
        </div>  
        <div id = "content">  
        <p>listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表. listview实现一个列表.listview实现一个列表.</p>  
        </div>  
        <div id = "time">  
        <h>原创</h>  
        <p class = "oth">2018-01-01 00:00:00</p>  
        <p class = "oth">阅读量:1000</p>  
        <p class = "oth">评论:2</p>  
        </div>  
          
        <div id = "artitlrtitle">  
        <h>listview实现列表</h>  
        </div>  
        <div id = "content">  
        <p>listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表。listview实现一个列表. listview实现一个列表.listview实现一个列表.</p>  
        </div>  
        <div id = "time">  
        <h>原创</h>  
        <p class = "oth">2018-01-01 00:00:00</p>  
        <p class = "oth">阅读量:1000</p>  
        <p class = "oth">评论:2</p>  
        </div>  
          
        </div>  
          
          
        <div id = "rside">  
          
        <div id = "head">    
        <img a href = "" src = "./images/c.gif" alt = "" width = "50" height = "50" style="float:left"></a>  
        <p>XXX</p>  
        <div id = "four">  
        <p class = "yuan" style="word-spacing:22px;text-indent:6px;">原创      粉丝     喜欢     码云 </p>  
        <p class = "num1" > 8 </p>  
        <p class = "num2" > 8 </p>  
        <p class = "num3" > 8 </p>  
        <p class = "num4"> 未开通 </p>  
        </div>  
        </div>  
          
          
        <div id = "intro">  
        <p class = "ff" >访问量: 1000 </p>  
        <p class = "ff" >等级: 2 </p>  
        <p class = "ff" >排名: 10000 </p>  
        <p class = "ff" >勋章: 恒 </p>  
        </div>  
           
           
        <div id = "fenlei">  
        <h>文章分类 </h>   
        <p><a class = "ti1" href = "#" > Android</a></p>  
        <p class = "tii1">8篇</p>  
        <p><a class = "ti1" href = "#" > CSS </a></p>  
        <p class = "tii1">8篇</p>  
        <p><a class = "ti1" href = "#" > JAVA </a></p>  
        <p class = "tii1">8篇</p>  
        </div>  
          
        <div id = "cundang">  
        <h>文章存档 </h>   
        <p><a class = "ti1" href = "#" > 2017年10月</a></p>  
        <p class = "tii1">2篇</p>  
        <p><a class = "ti1" href = "#" > 2018年01月 </a></p>  
        <p class = "tii1">2篇</p>  
        <p><a class = "ti1" href = "#" > 2019年03月 </a></p>  
        <p class = "tii1">6篇</p>  
         </div>  
           
        <div id = "paiming">  
        <h>阅读排名</h>   
        <div id = "pm">  
        <p><a class = "tiname" href = "#">css链接</a></p>  
        <p class = "tinum">阅读量:200</p>  
        </div>  
        <div id = "pm">  
        <p><a  class = "tiname"  href = "#">css链接</a></p>  
        <p class = "tinum">阅读量:200</p>  
        </div>  
        <div id = "pm">  
        <p><a class = "tiname"  href = "#">css链接</a></p>  
        <p class = "tinum">阅读量:200</p>  
        </div>  
        </div>  
           
           
        <div id = "callus">   
        <h>联系我们</h>  
        <p class = "us">网站客服</p>  
        <p class = "weibo"> 微博客服</p>  
        <p class = "us1"> www.php.cn</p>  
        <p class = "us1">400-100-200</p>  
        <p class = "oo1">京ICP证00000000号</p>  
        <p class = "oo2">关于|招聘|广告服务</p>  
         </div>  
           
        </div>  
          
          
        </div>  
          
        </div>  
    </body>  
</html>
Copy after login

Related recommendations:

How do novices pass Vue .js Node.js to build a personal blog

WordPress to build a personal blog

node.js blog project development experience sharing

html and csss realize simple blog code sharing

The above is the detailed content of Practical imitation blog page. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to send web pages to desktop as shortcut in Edge browser? How to send web pages to desktop as shortcut in Edge browser? Mar 14, 2024 pm 05:22 PM

How to send web pages to the desktop as a shortcut in Edge browser? Many of our users want to display frequently used web pages on the desktop as shortcuts for the convenience of directly opening access pages, but they don’t know how to do it. In response to this problem, the editor of this issue will share the solution with the majority of users. , let’s take a look at the content shared in today’s software tutorial. The shortcut method of sending web pages to the desktop in Edge browser: 1. Open the software and click the "..." button on the page. 2. Select "Install this site as an application" in "Application" from the drop-down menu option. 3. Finally, click it in the pop-up window

How to set up web page automatic refresh How to set up web page automatic refresh Oct 26, 2023 am 10:52 AM

To set the automatic refresh of a web page, you can use the HTML "meta" tag, the JavaScript "setTimeout" function, the "setInterval" function or the HTTP "Refresh" header. Detailed introduction: 1. Use the "meta" tag of HTML. In the "<head>" tag of the HTML document, you can use the "meta" tag to set the automatic refresh of the web page; 2. The "setTimeout" function of JavaScript, etc.

What should I do if the images on the webpage cannot be loaded? 6 solutions What should I do if the images on the webpage cannot be loaded? 6 solutions Mar 15, 2024 am 10:30 AM

Some netizens found that when they opened the browser web page, the pictures on the web page could not be loaded for a long time. What happened? I checked that the network is normal, so where is the problem? The editor below will introduce to you six solutions to the problem that web page images cannot be loaded. Web page images cannot be loaded: 1. Internet speed problem The web page cannot display images. It may be because the computer's Internet speed is relatively slow and there are more softwares opened on the computer. And the images we access are relatively large, which may be due to loading timeout. As a result, the picture cannot be displayed. You can turn off the software that consumes more network speed. You can go to the task manager to check. 2. Too many visitors. If the webpage cannot display pictures, it may be because the webpages we visited were visited at the same time.

Possible reasons why the network connection is normal but the browser cannot access the web page Possible reasons why the network connection is normal but the browser cannot access the web page Feb 19, 2024 pm 03:45 PM

The browser cannot open the web page but the network is normal. There are many possible reasons. When this problem occurs, we need to investigate step by step to determine the specific cause and solve the problem. First, determine whether the webpage cannot be opened is limited to a specific browser or whether all browsers cannot open the webpage. If only one browser cannot open the web page, you can try to use other browsers, such as Google Chrome, Firefox, etc., for testing. If other browsers are able to open the page correctly, the problem is most likely with that specific browser, possibly

Start from scratch and guide you step by step to install Flask and quickly establish a personal blog Start from scratch and guide you step by step to install Flask and quickly establish a personal blog Feb 19, 2024 pm 04:01 PM

Starting from scratch, I will teach you step by step how to install Flask and quickly build a personal blog. As a person who likes writing, it is very important to have a personal blog. As a lightweight Python Web framework, Flask can help us quickly build a simple and fully functional personal blog. In this article, I will start from scratch and teach you step by step how to install Flask and quickly build a personal blog. Step 1: Install Python and pip Before starting, we need to install Python and pi first

What to do if the webpage cannot be opened What to do if the webpage cannot be opened Feb 21, 2024 am 10:24 AM

How to solve the problem of web pages not opening With the rapid development of the Internet, people increasingly rely on the Internet to obtain information, communicate and entertain. However, sometimes we encounter the problem that the web page cannot be opened, which brings us a lot of trouble. This article will introduce you to some common methods to help solve the problem of web pages not opening. First, we need to determine why the web page cannot be opened. Possible reasons include network problems, server problems, browser settings problems, etc. Here are some solutions: Check network connection: First, we need

How to open php on the web page How to open php on the web page Mar 22, 2024 pm 03:20 PM

Executing PHP code in a web page requires ensuring that the web server supports PHP and is properly configured. PHP can be opened in three ways: * **Server environment:** Place the PHP file in the server root directory and access it through the browser. * **Integrated Development Environment: **Place PHP files in the specified web root directory and access them through the browser. * **Remote Server:** Access PHP files hosted on a remote server via the URL address provided by the server.

How to use JavaScript to show and hide the fixed navigation bar at the bottom of the web page? How to use JavaScript to show and hide the fixed navigation bar at the bottom of the web page? Oct 19, 2023 am 09:04 AM

How to use JavaScript to show and hide the fixed navigation bar at the bottom of the web page? In web design, a fixed navigation bar is a common design element that can provide users with quick navigation functions to access the website. When the user scrolls the page, the navigation bar can be fixed at the bottom of the page to provide continuous navigation services. This article will introduce how to use JavaScript to achieve this effect and provide specific code examples. To realize the display and hiding effect of the fixed navigation bar at the bottom of the web page, it can be divided into the following steps: Step

See all articles